OPEN-SOURCE SCRIPT

SMADIF4 Indicator

Updated
It shows a percentage difference between close and 4-SMA, 20, 50, 100 and 200. As it turns greener, the stock is more expensive, and vice versa, it turns redder when it becomes cheaper relative to the SMA. It will print the green backgraound as long as the bar closes above the 200 SMA and red as long as the bar closes below the 200 SMA. It uses by default 1.3 sigma to discriminate non-representative values and 100 bars in the past.
Release Notes
Algunas definiciones en el codigo
Release Notes
Description in color screen configuration
dispersionStandard Deviation

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?


Also on:

Disclaimer