OPEN-SOURCE SCRIPT

Cumulative Moving Average

Zaktualizowano
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.
Informacje o Wersji
Update:

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

Skrypt open-source

W prawdziwym duchu TradingView autor tego skryptu opublikował go jako open source, aby inwestorzy mogli go zrozumieć i zweryfikować. Pozdrowienia dla autora! Możesz go używać bezpłatnie, ale ponowne użycie tego kodu w publikacji podlega Zasadom Regulaminu. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Chcesz użyć tego skryptu na wykresie?


Również na:

Wyłączenie odpowiedzialności