Good day,
Please can you help me. If a candle stick for example on Dax opens and closes with a value greater than 10pt how can I add a text above that candle?
For example 5min open 11400 then close 11412
Regards,
Segie
There are multiple examples here: https://www.prorealcode.com/documentation/drawtext/
The Y coordinate is in price, the top of a candlestick is the High, obviously 🙂
There you go:
DEFPARAM CalculateOnLastBars = 1000
IF abs(close - open) > 10 * pipsize THEN
drawtext("I'm higher",barindex,high + 10 * pipsize) coloured(0,128,0,255)
ENDIF
RETURN