API reference
Constructor
new SmartMoneyConcepts(config?: SmartMoneyConceptsConfig)
Core methods
| Method | Returns | Description |
|---|
update(high, low, open, close, time, volume?) | Alerts | Process a new candle. Auto-detects updates to current bar. |
updateLastBar(high, low, open, close, time, volume?) | Alerts | Explicitly update the last bar in place. |
updateBulk(candles) | Alerts[] | Process an array of candles at once. |
clearAllData() | void | Reset all internal state. |
Market state
| Method | Returns | Description |
|---|
getTrendBias() | TrendBias | Swing trend direction: 'Bullish', 'Bearish', or 'Neutral' |
getInternalBias() | TrendBias | Internal (shorter-term) trend direction |
getCurrentZone(price?) | Zone | Price zone: 'Premium', 'Discount', or 'Equilibrium' |
getOrderBlocks() | { swing, internal } | Active order blocks at both structure levels |
getMarketMakerAnalysis() | MarketMakerAnalysis | Wyckoff phase detection with confidence scoring |
getOrderFlowSignals(limit?) | OrderFlowSignal[] | Recent institutional activity signals |
getLiquidityGrabs(limit?) | LiquidityGrab[] | Recent liquidity grab events |
getConsecutiveCandles() | object | Consecutive bullish/bearish candle count |
Debugging
| Method | Returns | Description |
|---|
getAlerts() | Alerts | Current bar's alerts (same as update() return value) |
getDebugInfo(price?) | object | Snapshot of the market state |
getPerformanceStats() | object | Processing time metrics |
getMemoryStats() | object | Internal array sizes |
getConfiguration() | object | Current config values |
getCurrentZoneTraillings() | object | Zone threshold levels |
Alerts object
Every call to update() returns an Alerts object with these boolean flags:
Structure
swingBullishBOS / swingBearishBOS: Swing Break of StructureswingBullishCHoCH / swingBearishCHoCH: Swing Change of CharacterinternalBullishBOS / internalBearishBOS: Internal Break of StructureinternalBullishCHoCH / internalBearishCHoCH: Internal Change of Character
Order blocks
swingBullishObBrokenDown / swingBearishObBrokenUp: Swing OB mitigationinternalBullishObBrokenDown / internalBearishObBrokenUp: Internal OB mitigationinsideInternalBullishOrderBlock / insideSwingBullishOrderBlock: Price inside bullish OBinsideInternalBearishOrderBlock / insideSwingBearishOrderBlock: Price inside bearish OB
Other
equalHighs / equalLows: Equal highs/lows (liquidity pools)bullishFairValueGap / bearishFairValueGap: FVG detectionliquidityGrab: Liquidity grab at equal levelsvolumeSpike / institutionalVolume: Volume eventssessionBreakout: Session breakout detectionchangeOfStateOfDelivery: ICT COSDbreakerBlockFormed: HP OB failed, became breakerunicornSetup: Breaker + FVG alignment (The Unicorn)
Use alerts.getTrueAlerts() to get only the active alerts as an object.