Arlington
Posts: 18 since Feb 2020
Thanks Given: 6
Thanks Received: 3
|
Hi Everyone, I bet there's an easy solution. I just want a way to colorize a line appropriately: Green when the line has a positive slope, red when the line has a negative slope.
Here is my code so far, but the color changes 1 period too late:
plot1(close);
if close >= close[1] then setplotcolor(1,green)
else setplotcolor(1,red);
|