rma functions from pinescript to MT5 新评论 灵魂设计师 2022.06.27 08:38 I want to port the functions from pinescript to MT5 but I don't know how to do the recursive part. rma(src, length,m) => alpha = m / length sum = 0.0 sum := na(sum[1]) ? sma(src, length) : alpha * src + (1 - alpha) * nz(sum[1]) This part of 'sum[1]' is not known how to implement ATR like trading view in MT5 Could someone please help me(trendline question) Relative Strength of True Range 新评论
I want to port the functions from pinescript to MT5 but I don't know how to do the recursive part.
rma(src, length,m) =>
alpha = m / length
sum = 0.0
sum := na(sum[1]) ? sma(src, length) : alpha * src + (1 - alpha) * nz(sum[1])
This part of 'sum[1]' is not known how to implement