OPEN-SOURCE SCRIPT

Anchored Moving Average by TradeSeekers

568
This script plots an SMA that resets based on the selected anchored timeframe, by default it is 1D.

There exists some other AMA scripts but I didn't find anything that plotted the non-anchored MA alongside the AMA and displayed the point of convergence.

The non-anchored MA presents slightly opaque as a circle plot until the anchored MA converges.

Until the anchored MA contains enough data an simple average is calculated of all source prices collected starting from the anchor.

For example, if the timeframe has reset and source is set to closing prices, then after the first bar the AMA is essentially the last closing price. After two bars have closed then the AMA is an average of the last two closing prices.

Future updates may add additional average types as time permits.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.