Inputs: MA Length = select the length period of the moving average Timeframe = select the timeframe you want the indicator to operate on Moving Average Type = select the type of moving average you want to use- most common ones are listed Lookback = The histogram comparison period. A longer lookback will give fewer signals. "Compare this reading to the past [Lookback #] of readings" Threshold = The percent change in reading required compared to the lookback period to paint a bar dark red or dark green. A smaller threshold gives fewer readings. "Compare this reading and only look for the top [Threshold %] of moves"
This moving average creates a histogram plot of the percent deviation from a specified moving average. Above paints faint green, and below paints faint red. Dark red/green are painted in the direction of the move when the move is above the Threshold % when compared to the past Lookback length.
This script is optimally used to countertrend. It paints a good place to buy the dip or sell the rip given extensions-- different variant of overbought/oversold.
In this example, I used the 100 SMA, 100 period lookback, and a threshold of 7% [Default].
In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.
Vuoi usare questo script sui tuoi grafici?
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.