Why traders watch it
What it says about buyers and sellers
The price swung both ways during the day but ended close to where it began. Like a doji, it shows indecision; the body is just a little bigger.
A small body with wicks on both sides longer than the body.
Try it
Bend the candles and watch each rule pass or fail. The verdict comes from the same code that counted the stats below.
Drag the handles (H high, L low, O open, C close), or Tab to one and use the arrow keys.
This is a spinning top: all 3 rules pass.
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
The price swung both ways during the day but ended close to where it began. Like a doji, it shows indecision; the body is just a little bigger.
Honest numbers
Every case our rules found in the data, compared with buying on any day.
Verdict · No direction
After a spinning top, stocks were up 5 trading days later 46.8% of the time, against 46.6% on any day: practically the same. It doesn't point either way, and the numbers agree.
Higher 5 days later
46.8%
Any day: 46.6%
Average move
+0.11%
Any day: +0.08%
Typical move (median)
−0.33%
Any day: −0.35%
Cases
3,15,776
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
Point at a year for its numbers. Faded years had fewer than 30 cases and don't count.
Real charts
Look at the pattern first, decide what you expect, then reveal what came next.
MARUTI: spinning top completed on 30 Nov 2015.
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
In a strategy script, ta.candlePattern(bars, "spinning-top") 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 spinning top has no direction, so this only counts them.
const hit = ta.candlePattern(bars, "spinning-top");
const count = hit.filter((x) => x).length;
console.log("Spinning top: " + count + " of " + bars.length + " candles");
return [];
}New to scripts? Start with the Writing strategies trackCheck yourself
1. Is the last candle a spinning top?
2. Is the last candle a spinning top?
3. Is the last candle a spinning top?
Get all 3 right to tick this pattern off.