Gabriel Koerich › smart-money-concepts

Senior Engineer · AI Workflows · Solana / DeFi

Quick start

import { SmartMoneyConcepts } from 'smart-money-concepts'

const smc = new SmartMoneyConcepts({
  swingsLengthInput: 50,
})

// Feed candles one at a time
const alerts = smc.update(high, low, open, close, timestamp, volume)

// Check what happened
if (alerts.swingBullishBOS) {
  console.log('Bullish Break of Structure detected')
}

if (alerts.swingBearishCHoCH) {
  console.log('Bearish Change of Character detected')
}

// Get current market state
const bias = smc.getTrendBias()       // 'Bullish' | 'Bearish' | 'Neutral'
const zone = smc.getCurrentZone()      // 'Premium' | 'Discount' | 'Equilibrium'
const obs  = smc.getOrderBlocks()      // { swing: OrderBlock[], internal: OrderBlock[] }