詳細
⋅ //Created by user ChrisMoody 1-31-2014 for user eriktatch
study(title = "CM_Hull MA-Color-Trend", shorttitle="CM_HMA-Color-Trend", overlay = true)
source = close, length = input(41, minval=1)
hullma = wma(2*wma(source, length/2)-wma(source, length), round(sqrt(length)))
//Lookback period set to [1]...use higher number to emphasize Trend
plot_color = hullma >= hullma[1] ? lime : hullma < hullma[1] ? red : white
plot(hullma, title = "Hull MA", style = line, linewidth = 4, color = plot_color)
I TRIED THIS CODE, BUT IT'S NOT PROCESSED.SAYING THERE'S AN ERROR.
COULD I HAVE THE RIGHT CODE.
Thank You,
aryahi