supertrend1=Supertrend[3,32]
supertrend2=Supertrend[5,55]
atr=averagetruerange[10]
if close crosses over supertrend1 or close crosses over supertrend2 then
drawarrowup(barindex,low-atr) coloured(0,200,0)
sens=1
elsif close crosses under supertrend1 or close crosses under supertrend2 then
drawarrowup(barindex,low-atr) coloured(0,200,0)
sens=-1
endif
if close crosses over supertrend1 and sens[1]=-1 then
drawtext("X",barindex,high+atr,Dialog,Bold,22) coloured(200,0,0)
elsif close crosses under supertrend1 and sens[1]=1 then
drawtext("X",barindex,high+atr,Dialog,Bold,22) coloured(200,0,0)
endif
RETURN