Te li ho messi sulla stessa linea:
DEFPARAM DRAWONLASTBARONLY=TRUE
timeframe(1 week,updateonclose)
STW1=Supertrend[mult,cdl]
timeframe(1 day,updateonclose)
STD1=Supertrend[mult,cdl]
timeframe(4 hour,updateonclose)
STH4=Supertrend[mult,cdl]
timeframe(1 hour,updateonclose)
STH1=Supertrend[mult,cdl]
timeframe(30 minute,updateonclose)
STm30=Supertrend[mult,cdl]
timeframe(15 minute,updateonclose)
STm15=Supertrend[mult,cdl]
timeframe(10 minute,updateonclose)
STm10=Supertrend[mult,cdl]
timeframe(5 minute,updateonclose)
STm5=Supertrend[mult,cdl]
timeframe(3 minute,updateonclose)
STm3=Supertrend[mult,cdl]
timeframe(default)
if close>STW1 then
drawtext("ST(W1) = LONG #STW1#",barindex+20,STW1)coloured(0,128,0)
else
drawtext("ST(W1) = SHORT #STW1#",barindex+20,STW1)coloured(255,99,71)
ENDIF
if close>STD1 then
drawtext("ST(D1) = LONG #STD1#",barindex+20,STD1)coloured(0,128,0)
else
drawtext("ST(D1) = SHORT #STD1#",barindex+20,STD1)coloured(255,99,71)
ENDIF
if close>STH4 then
drawtext("ST(H4) = LONG #STH4#",barindex+20,STH4)coloured(0,128,0)
else
drawtext("ST(H4) = SHORT #STH4#",barindex+20,STH4)coloured(255,99,71)
ENDIF
if close>STH1 then
drawtext("ST(H1) = LONG #STH1#",barindex+20,STH1)coloured(0,128,0)
else
drawtext("ST(H1) = SHORT #STH1#",barindex+20,STH1)coloured(255,99,71)
ENDIF
if close>STm30 then
drawtext("ST(m30) = LONG #STm30#",barindex+20,STm30)coloured(0,128,0)
else
drawtext("ST(m30) = SHORT #STm30#",barindex+20,STm30)coloured(255,99,71)
ENDIF
if close>STm15 then
drawtext("ST(m15) = LONG #STm15#",barindex+20,STm15)coloured(0,128,0)
else
drawtext("ST(m15) = SHORT #STm15#",barindex+20,STm15)coloured(255,99,71)
ENDIF
if close>STm10 then
drawtext("ST(m10) = LONG #STm10#",barindex+20,STm10)coloured(0,128,0)
else
drawtext("ST(m10) = SHORT #STm10#",barindex+20,STm10)coloured(255,99,71)
ENDIF
if close>STm5 then
drawtext("ST(m5) = LONG #STm5#",barindex+20,STm5)coloured(0,128,0)
else
drawtext("ST(m5) = SHORT #STm5#",barindex+20,STm5)coloured(255,99,71)
ENDIF
if close>STm3 then
drawtext("ST(m3) = LONG #STm3#",barindex+20,STm3)coloured(0,128,0)
else
drawtext("ST(m3) = SHORT #STm3#",barindex+20,STm3)coloured(255,99,71)
ENDIF
RETURN STm30 as "SuperTrend m30",STH4 as "SuperTrend H4", STH1 as "SuperTrend H1",STD1 as "SuperTrend D1", STW1 as "SuperTrend W1",STm15 as "SuperTrend m15", STm3 as "SuperTrend m3",STm10 as "SuperTrend m10", STm5 as "SuperTrend m5"