Gabriel Koerich › smart-money-concepts

Senior Engineer · AI Workflows · Solana / DeFi

API reference

Constructor

new SmartMoneyConcepts(config?: SmartMoneyConceptsConfig)

Core methods

MethodReturnsDescription
update(high, low, open, close, time, volume?)AlertsProcess a new candle. Auto-detects updates to current bar.
updateLastBar(high, low, open, close, time, volume?)AlertsExplicitly update the last bar in place.
updateBulk(candles)Alerts[]Process an array of candles at once.
clearAllData()voidReset all internal state.

Market state

MethodReturnsDescription
getTrendBias()TrendBiasSwing trend direction: 'Bullish', 'Bearish', or 'Neutral'
getInternalBias()TrendBiasInternal (shorter-term) trend direction
getCurrentZone(price?)ZonePrice zone: 'Premium', 'Discount', or 'Equilibrium'
getOrderBlocks(){ swing, internal }Active order blocks at both structure levels
getMarketMakerAnalysis()MarketMakerAnalysisWyckoff phase detection with confidence scoring
getOrderFlowSignals(limit?)OrderFlowSignal[]Recent institutional activity signals
getLiquidityGrabs(limit?)LiquidityGrab[]Recent liquidity grab events
getConsecutiveCandles()objectConsecutive bullish/bearish candle count

Debugging

MethodReturnsDescription
getAlerts()AlertsCurrent bar's alerts (same as update() return value)
getDebugInfo(price?)objectSnapshot of the market state
getPerformanceStats()objectProcessing time metrics
getMemoryStats()objectInternal array sizes
getConfiguration()objectCurrent config values
getCurrentZoneTraillings()objectZone threshold levels

Alerts object

Every call to update() returns an Alerts object with these boolean flags:

Structure

  • swingBullishBOS / swingBearishBOS: Swing Break of Structure
  • swingBullishCHoCH / swingBearishCHoCH: Swing Change of Character
  • internalBullishBOS / internalBearishBOS: Internal Break of Structure
  • internalBullishCHoCH / internalBearishCHoCH: Internal Change of Character

Order blocks

  • swingBullishObBrokenDown / swingBearishObBrokenUp: Swing OB mitigation
  • internalBullishObBrokenDown / internalBearishObBrokenUp: Internal OB mitigation
  • insideInternalBullishOrderBlock / insideSwingBullishOrderBlock: Price inside bullish OB
  • insideInternalBearishOrderBlock / insideSwingBearishOrderBlock: Price inside bearish OB

Other

  • equalHighs / equalLows: Equal highs/lows (liquidity pools)
  • bullishFairValueGap / bearishFairValueGap: FVG detection
  • liquidityGrab: Liquidity grab at equal levels
  • volumeSpike / institutionalVolume: Volume events
  • sessionBreakout: Session breakout detection
  • changeOfStateOfDelivery: ICT COSD
  • breakerBlockFormed: HP OB failed, became breaker
  • unicornSetup: Breaker + FVG alignment (The Unicorn)

Use alerts.getTrueAlerts() to get only the active alerts as an object.