Changing the color of the indicator  [SOLVED]

Questions about MultiCharts and user contributed studies.
Deenius
Posts: 5
Joined: 08 Dec 2018
Has thanked: 3 times

Changing the color of the indicator

Postby Deenius » 30 Dec 2018

Hello,

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);

SP
Posts: 465
Joined: 06 Feb 2006
Has thanked: 36 times
Been thanked: 286 times

Re: Changing the color of the indicator  [SOLVED]

Postby SP » 30 Dec 2018

For SlateBlue change the input upColor(Cyan) to upColor (13458026), for DarkSlateBlue to upColor (9125192).

You could find more information in this thread
viewtopic.php?t=5671
http://cloford.com/resources/colours/500col.htm


Return to “MultiCharts”