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

Or browse all 158 indicators in the full library.

Build a bot that trades on Doji — the first backtest is free.

Run a free backtest