This indicator shows the average , of last N Periods, for the selected time frames.
You can select up to 2 timeframes with this version
is defined as the close of current candle - close of the previous N candle
Presented as Currency, Pip, percentage labels in a panel below.
Will calculate in real-time only for the current instrument on the chart.
The indicator is coded to not be repainting
In the indicator screenshot, I used a lookback period of 1.
That compares the current candle close versus the previous one for the daily and
Showing how the results are calculated for the weekly calculations
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 a publication is governed by House Rules. You can favorite it to use it on a chart.