Classic %K / %D stochastic that marks when both lines enter a zone.
On a standard stochastic, %K and %D often enter the overbought or oversold zone a few bars apart, and the pane fills with noise. This version marks only the bar where both lines are in the zone, once on entry. A red triangle marks overbought, a green triangle marks oversold.
The stochastic is a momentum oscillator with two lines. %K shows where the close sits within the recent high-low range; %D is a smoothed version of %K. Overbought and oversold are the top and bottom zones of its scale. This indicator uses the classic formula unchanged, drawn as a blue line and an orange line between an upper, a lower and a middle band.
02
Both lines, same zone
The one addition is the zone marker. A red triangle marks the bar where both %K and %D have crossed above the upper band: an overbought entry. A green triangle marks the bar where both have crossed below the lower band: an oversold entry. One line alone in the zone prints nothing, so a marker means both lines confirm the same zone.
Red triangle, pointing down: overbought
Green triangle, pointing up: oversold
03
Printed once, on entry
Markers print on the entry bar only, not on every bar the lines stay inside the zone. A long stay in overbought gives you one red triangle, not a row of them. The pane stays readable, and each marker points to a single bar you can line up with price. The triangles sit outside the bands, so they do not cover the lines.
04
What a marker tells you
A marker tells you where the stochastic is: both lines have just entered an extreme zone together. It does not tell you what price must do next. Read it against price structure. The next marker prints only after the lines leave the zone and come back in, so each one stands for a fresh visit.
How to read it
Blue and orange lines: the %K and %D stochastic lines.
Red triangle above the upper band: on this bar, both %K and %D have crossed into overbought.
Green triangle below the lower band: on this bar, both lines have crossed into oversold.
No new triangle while the lines stay in the zone. The next one prints only after a fresh entry.
A marker shows where the stochastic is, not what price must do next. Read it against price structure.
Good to know
Markers print on the zone entry bar only; nothing more prints while both lines stay in the zone.
A marker needs both %K and %D in the zone; one line alone does not print.
The overbought and oversold levels are adjustable, and the markers follow them.
Protected (closed-source) script, free to use without limitations.
Questions
What is different from TradingView's standard stochastic?
The %K / %D formula is the classic one. The addition is a triangle on the bar where both lines enter the overbought or oversold zone, printed once per entry.
Why is there no marker when %K is already in the zone?
A marker needs both %K and %D in the zone. Until %D follows, nothing prints.
Does it mark every bar inside the zone?
No. It marks the entry bar once. The next marker comes only with a fresh entry.
Stochastic + Dual Zone Entry is an analysis tool, not investment advice. Charts and examples are illustrations.