OPEN-SOURCE SCRIPT

Return Moving Average [SpiritualHealer117]

The return moving average is similar to a simple moving average, but is based on return instead of close prices. This indicator works in two modes, oscillator mode and default mode, which can be selected from the inputs menu for the indicator. Oscillator mode features an oscillator centered around 1, which shows the return, and how it relates to the moving average for returns, highest return and lowest return. Default mode features three lines, a white moving average line which shows the average return multiplied by the source, a red line which is calculated from the highest return multiplied by the source, and a green line which shows the lowest return multiplied by the source.

The indicator can be used for checking trends or as an indicator of reversals.
Bands and ChannelsCentered OscillatorsMoving Averages

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