Mr D
New member
Ruby:
##########################################
# Hull Momentum WL Column #
# Displays Hull momentum relative to ATR #
##########################################
input length = 16;
input src = close;
def hma= WMA(2 * WMA(src, length / 2) - WMA(src, length), Round(Sqrt(length)))[1];
plot rsi= 100*(hma-hma[1])/atr()[1];
def up = rsi> 10;
def dn = rsi<-10;
rsi.assignValueColor( if dn or up then color.black else color.white);
assignbackgroundcolor(if up then color.green else if dn then color.red else color.dark_gray);
#######
# END #
#######