I'd like to ask someone who understands the easy language to help me with changing the color of VWAP indicator. I know how to do it with the 16 basic colors. However, I can not figure out how to use an extended color palette like x11.
https://en.wikipedia.org/wiki/Web_colors
I wanted to change the color of VWAP to SlateBlue or DarkSlateBlue. Could somebody help me? Thank you!
Original VWAP code:
Code: Select all
input:
Price(AvgPrice),
LocalHrsOffset(0),
time1(0900),
time2(0930),
time3(1129),
time4(1315),
time5(1415),
upColor(Cyan),
dnColor(Magenta);
var:
var0(0);
var0 = VWAPResettable(Price,LocalHrsOffset,time1,time2,time3,time4,time5);
plot1(var0,"vwap_reset");
var: var1(yellow);
if var0 > var0[1] then var1 = upColor;
if var0 < var0[1] then var1 = dnColor;
SetPlotColor(1,var1);