OPEN-SOURCE SCRIPT

Anchored Moving Average by TradeSeekers

811
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.

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。