OPEN-SOURCE SCRIPT

Consecutive Closes Above/Below 3 SMA with Z-Score Bands

By Marcn5_
A simple indicator that measures consecutive closes above & below the 3-period simple moving average. An upper and lower Z-score has been calculated to indicate where the 4 standard deviations of the last 60 bars sits.

Useful for identifying directional runs in price.
Moving AveragesOscillatorsstatistics
Marcn5_

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer