SV

Street Verdict

Analyst Scorecard

Candles & patterns

Doji

No direction1 candle

Opens and closes at almost the same price: a draw between buyers and sellers.

Try it

The rules, live

Bend the candles and watch each rule pass or fail. The verdict comes from the same code that counted the stats below.

₹97.5₹100₹102.5the days beforeThe candleHLOC

Drag the handles (H high, L low, O open, C close), or Tab to one and use the arrow keys.

This is a doji: its one rule passes.

  1. CandleOpen and close are almost equal: the body is at most 10% of the day's range.

These are the exact rules the stats below were counted with, and the ones ta.candlePattern uses in a script. Textbooks differ in the details; every threshold here is fixed and public.

Why traders watch it

What it says about buyers and sellers

Buyers and sellers both moved the price during the day, and by the close neither side had gained ground. On its own a doji says the market is undecided; traders watch what the next candles do.

Honest numbers

What it actually did next on NSE stocks

Every case our rules found in the data, compared with buying on any day.

Verdict · No direction

After a doji, stocks were up 5 trading days later 46.4% of the time, against 46.7% on any day: practically the same. It doesn't point either way, and the numbers agree.

Higher 5 days later

46.4%

Any day: 46.7%

Average move

+0.07%

Any day: +0.09%

Typical move (median)

−0.35%

Any day: −0.35%

Cases

2,62,236

1 Jan 2015 to 25 Sept 2026

Measured from the next day's open (you only know a pattern at the close) to the close 5 trading days after the pattern. The median is the middle case: half did better, half worse. It is below the average because a few big gains pull the average up.

Year by year: how often higher 5 days later

DojiAny day
35%40%45%50%55%201520162017201820192020202120222023202420252026

Point at a year for its numbers. Faded years had fewer than 30 cases and don't count.

How these numbers were made
  • Daily candles of 2,032 NSE stocks from 1 Jan 2015 to 25 Sept 2026 (companies with filed financials, so no ETFs or index funds). The rules are the ones shown above, exactly.
  • A day counts only if the stock closed at ₹20 or more and its median daily traded value over the last 20 sessions was at least ₹1 crore, so you could actually have traded it. "Any day" uses the same days, and is weighted to the same years as the pattern.
  • Corporate actions: these prices are adjusted for splits and bonuses. Evidence: RELIANCE's 1:1 bonus (ex-date 28 Oct 2024) shows no overnight halving in this data: ₹1,327.85 close on 25 Oct, ₹1,337 open on 28 Oct. Its 2017 bonus (ex-date 7 Sep 2017) is the same: ₹392.10 close, ₹392.25 open. As a safety net, any stretch with a jump of more than 35% from one close to the next open or close, or a gap of more than 15 days between sessions, was left out (2,634 days).
  • "100 most traded" are the 100 stocks with the highest median daily traded value over their last 250 sessions: mostly large, well-known companies.
  • Only stocks listed today are included. Companies that were delisted or went bust are missing, which flatters every number a little (survivorship bias). Results on the same day across many stocks move together, so the real uncertainty is larger than the case counts suggest; that is why the year-by-year view matters.
  • Costs: a ₹1,00,000 delivery round trip costs about ₹119 to buy and ₹119 to sell (taxes, exchange and depository charges, no brokerage), plus 3 basis points of slippage each way (₹60): ₹298, or 0.30%. Rates are indicative.
  • Built 27 Oct 2026. This is history, not a forecast.

Real charts

Real examples

Look at the pattern first, decide what you expect, then reveal what came next.

BAJFINANCE: doji completed on 7 Jan 2016.

₹55₹609 Dec 201518 Dec 201530 Dec 20158 Jan 201619 Jan 201629 Jan 2016

These 6 examples come from the 100 most traded stocks and were picked because the shape is clear, not because of what happened next. Prices are adjusted for later splits and bonuses, so they can differ from what was quoted on the day.

Scripting

Use it in a script

In a strategy script, ta.candlePattern(bars, "doji") gives one true or false per candle: true on the day the pattern completes, by exactly the rules above.

function run(bars, ta, helpers) {
  // A doji has no direction, so this only counts them.
  const hit = ta.candlePattern(bars, "doji");
  const count = hit.filter((x) => x).length;
  console.log("Doji: " + count + " of " + bars.length + " candles");
  return [];
}
New to scripts? Start with the Writing strategies track

Check yourself

Spot the doji

  1. 1. Is the last candle a doji?

  2. 2. Is the last candle a doji?

  3. 3. Is the last candle a doji?

Get all 3 right to tick this pattern off.