Hi, I was trying to code an indicator that should draw a candle in the past in a different color when it is followed by some inside bars (basically it is like the “Master Candle”). I think this is not possible due to the drawCandle command that does not accept the barindex. Am I correct? Can I suggest this improvement to the product somewhere?
Cheers
R
A temporary & ugly workaround would be to use a rectangle, like this:
IF high < high[1] AND low > low[1] AND high[1] < high[2] AND low[1] > low[2] THEN
DRAWRECTANGLE(BarIndex-3,high[2],BarIndex-1,low[2])// COLOURED(R,V,B,a)
ENDIF
RETURN
but you cannot change the colour of the rectangle, just the border colour, also, to make it visible you’ll have to start drawing it a bar further in the past and end it a bar closer to the current one.
Thanks Roberto, I’ll try later.
Cheers
R