my script is as following:
Code: Select all
if trend = 1 then begin
SetPlotColor(9, Blue);
end;
if trend = -1 then begin
SetPlotColor(9, red);
end;
PlotPaintBar(O, H, L, C, 9, default);
Code: Select all
if trend = 1 then begin
SetPlotColor(9, Blue);
end;
if trend = -1 then begin
SetPlotColor(9, red);
end;
PlotPaintBar(O, H, L, C, 9, default);
PlotPaintBar is the equivalent of:
Plot1(BarHigh);
Plot2(BarLow);
Plot3(BarOpen);
Plot4(BarClose);
Code: Select all
PlotPaintBar(O, H, L, C, "OHLC", default);
if trend = 1 then
begin
SetPlotColor(1, Blue);
SetPlotColor(2, Blue);
SetPlotColor(3, Blue);
SetPlotColor(4, Blue);
end
else
// if trend = -1 then
begin
SetPlotColor(1, red);
SetPlotColor(2, red);
SetPlotColor(3, red);
SetPlotColor(4, red);
end;