TradeZoro
Notifications

Cookbook

Stochastic

Where the close sits inside the recent range.

//@zscript 1
indicator("Stochastic")
k = ta.stoch(close, high, low, 14)
d = ta.sma(k, 3)
hline(80)
hline(20)
plot(k, "%K", color=color.blue)
plot(d, "%D", color=color.orange)
-1.8724.9751.8178.65105
Sample bars, not market data. Stochastic.

How it works

100 means the close is at the top of the last 14 bars' range, 0 the bottom.

Education only. Not financial advice. Examples are teaching samples, not trading results.

Zscript is coming soon

The manual opens when Zscript launches.

Back to home