Most Beginners Get Candle ID Wrong — Here’s How to Read It Like a Bot 🧠
If you’re building bots, the market doesn’t care about what you feel — it only cares about how the bot reads the data. 🤖
Here’s a trick:
When you see candles on your chart, the one you see right now (the latest candle) is ID 0.
The one before is ID 1.
Two candles back = ID 2, and so on. 📈
It’s like snapshots:
  • 🟢 ID 0 = current active candle (still moving)
  • 🟡 ID 1 = last closed candle (fixed)
  • 🟠 ID 2 = two candles ago (fixed)
  • 🔴 ID 3 = three candles ago (fixed)
Bots “think” in IDs — not in time. ⏳
That’s why if you’re checking a Moving Average or a Candle Close, you have to reference the correct ID
Quick Tip for Your Bots: ⚡
If you’re building a bot:
  • ✅ Use ID 1 for safer strategies (confirmed closed candles).
  • ⚠️ Be careful using ID 0 — still forming and can change.
4
2 comments
Nocode Algo
4
Most Beginners Get Candle ID Wrong — Here’s How to Read It Like a Bot 🧠
Nocode labs
skool.com/nocodealgo-1706
Learn to Build Forex Bots — Step-by-Step, No Coding
Leaderboard (30-day)
Powered by