OPEN-SOURCE SCRIPT

Cumulative Moving Average

Diupdate
For a given candle, the cumulative moving average is equal to the price averaged over all preceding candles.



N.B. In this script, the daily price is calculated from (high + low) / 2.
Catatan Rilis
Update:

  • Added upper and lower bounds. These are user-defined multiples of the cumulative average. Can be configured under settings to suit your asset.
Catatan Rilis
Added step interval 0.05
Catatan Rilis
CMA works best on larger time frames with many data candles, however so long as amount of data is comparable, the values are the same between timeframes.
Catatan Rilis
deleted
Moving Averages

Skrip open-source

Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menerbitkannya sebagai sumber terbuka, sehingga para trader dapat memahami dan memverifikasinya. Hormat untuk penulisnya! Anda dapat menggunakannya secara gratis, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk digunakan pada chart

Inggin menggunakan skrip ini pada chart?


Juga di:

Pernyataan Penyangkalan