Independence
Posts: 2 since Nov 2016
Thanks Given: 0
Thanks Received: 0
|
Thankfully I was able to find out how to do this:
input length = 21;
plot data = close;
def MovAvgExponential = Average(data, length);
AssignBackgroundColor( if data < MovAvgExponential then Color.RED else if data > MovAvgExponential then Color.GREEN else Color.BLACK);
|