Good day,
Please can you assist with the following.
When price is between two Supertrends I need a text to appear above the candle e.g “Sideways”
Can use e.g Supertrend 3.10 and 2.10 as an example
Regards,
Segie
There you go:
DEFPARAM DrawOnLastBarOnly = true
ST1 = Supertrend[3,10]
ST2 = Supertrend[2,10]
offset = max(St1,ST2)
IF ((close >= ST1) AND (close <= ST2)) OR ((close >= ST2) AND (close <= ST1)) THEN
DRAWTEXT("sideways",barindex,Offset + range,SansSerif,Bold,16) coloured(0,128,0,255)
ENDIF
RETURN