MOMENTUM & OSCILLATORS
Doji
A candle that opened and closed at nearly the same price — a standoff.
spec id: dojifrac (default 0.1)
What does Doji measure?
A candle that opened and closed at nearly the same price — a standoff. On its own it means indecision; after a long run it often marks hesitation before a turn.
How is Doji calculated?
Answers 1 when the candle's body (open to close) is no more than 0.1 of its full high-to-low range. Otherwise 0.
Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.
How do I use Doji in a bot?
In the builder, add an indicator of type doji (parameters: frac, default 0.1). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.
Related indicators
- Detrended pricePrice with the trend stripped out, so only the shorter cycles remain.
- Efficiency ratioHow directly the price got to where it is.
- Elder rayHow far buyers can push above the trend, and how far sellers can push below it.
- Fisher transformA transform that turns gentle price waves into sharp peaks and troughs, so turning points are easier to see and easier to rule on.
Or browse all 158 indicators in the full library.