OPEN-SOURCE SCRIPT

Anchored Moving Average by TradeSeekers

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

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.