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.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。