Good day,
Can volume movement be added to this code? So two conditions being met and then the text appears.
1. Example 1. on 5min if the price greater than 10 points and the corresponding volume is greater than 500. If these two conditions are met then a text appears on that candle.
2. Example 2. Same as above. But instead of the text on the candle, the candle changes to a ‘gold’ colour
I also attached a code
Regards,
Segie
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
Example 1: (with text)
DEFPARAM CalculateOnLastBars = 1000
IF abs(close - open) > 10 * pipsize and volume>500 THEN
drawtext("***",barindex,high + 10 * pipsize) coloured(0,128,0,255)
ENDIF
RETURN
Example 2: (no text but candlestick in gold color)
DEFPARAM CalculateOnLastBars = 1000
IF abs(close - open) > 10 * pipsize and volume>500 THEN
drawcandle(open,high,low,close)coloured(255,215,0)
ENDIF
RETURN