OPEN-SOURCE SCRIPT

Cumulative Moving Average

已更新
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.
版本注释
Update:

  • Added upper and lower bounds. These are user-defined multiples of the cumulative average. Can be configured under settings to suit your asset.
版本注释
Added step interval 0.05
版本注释
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.
版本注释
deleted
Moving Averages

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


更多:

免责声明