EL code question for TS

TWI

Senior member
Messages
2,559
Likes
269
Does anybody know how I can change the displayed colour of candlesticks or bars in TS2k between two specified times.
 
Hello TW,

You can do this by creating a paintbar study and using it to change the colour of particular bars.
 
OK, thanks, came up with following example then. At a guess Open, Close can be added to colour entire candle.

Inputs: Criteria(Time > 0830 and Time < 0900);

If Criteria Then Begin
PlotPaintBar(High, Low, "Paint AnyBar");
End
Else Begin
NoPlot(1);
NoPlot(2);
End;
 
Top