Mr D
New member

Ruby:
############################################
# ACR Gain WL Column #
# Current price relative to previous close #
# in multiples of average candle range #
############################################
plot v = (close-close[1])/Average(high - low, 5)[1];
AssignBackgroundColor(if v>=0.9 then color.green
else if v<=-0.9 then color.red
else if v>=0.4 then color.dark_green
else if v<=-0.4 then color.dark_red
else color.black);
v.assignvaluecolor(if v>=0.9 or v<=-0.9 then color.black else color.white);
#######
# END #
#######