TradingView
peacefulLizard50262
2022年12月14日午後4時25分

Cumulative Weighted Exponential Moving Average (CWEMA) 

Verizon Communications Inc.NYSE

詳細

This is a Pine Script for the "Cumulative Weighted Exponential Moving Average" (CWEMA) indicator. The script defines the CWEMA indicator using the ema() and wma() functions, which respectively calculate the exponential moving average and weighted moving average of a given data series. The cwema() function computes the weights for each value in the moving average and then uses the wma() function to calculate the weighted moving average of the exponentially weighted moving average of the input data series. The resulting CWEMA values are plotted on a chart.
コメント
pmk07
hi. why do we do (len - src)?
peacefulLizard50262
@pmk07, good question haha I really can't remember why I did that.
詳細