OPEN-SOURCE SCRIPT

Anchored Moving Average by TradeSeekers

978
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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。