bonjour, j’aimerais créer un screener avec l indicateur suivant en 2 parties un screener BUY et un SELL. Une fleche UP apparait sur la derniere bougie et on achete le lendemain sur breakout de la bougie . et un autre si fleche DOWN alors on vend sous le plus bas. Gracias
//
defparam calculateonlastbars = 5000
if Close>( max(max(high,high[1]),max(high[1],high[1]) ))[1] then
D=Min(Min(low,low[1]),Min(low[1],low[1]))
elsif close<(Min(Min(low,low[1]),Min(low[1],low[1])))[1] then
D=Max(Max(high,high[1]),Max(high[1],high[1]))
else
D=D[1]
endif
//plot1 = 0
//plot2 = 0
rge = averagetruerange[10](close)
if (close crosses over D) then
//plot1 = 1
//DRAWARROWUP(barindex,low[1]-0.2*rge) coloured(250,250,0,250)
DRAWTEXT(“▲”,BarIndex,low[1]-0.40*rge,dialog,bold,20) coloured(250,250,250,255)//(H1/H4 = +7) (1 min = -1)
levelDwn=low[0]
hh=high
//else
//plot1 = 0
endif
if (close crosses under D) then
//DRAWARROWDOWN(barindex,high[1]+0.2*rge) coloured(250,250,0,250)
DRAWTEXT(“▼”,BarIndex,high[1]+0.40*rge,serif,bold,20) coloured(250,250,250,255) //(H1/H4 = +7) (1 min //= -12
//plot2=-1
//else
//plot2=0
levelUP=high[0]
ll=low
endif
return D,levelUp coloured(0,250,0) STYLE(dottedLINE),levelDwn coloured(250,250,0) STYLE(dottedLINE),hh coloured(0,250,0) STYLE(LINE),ll coloured(250,250,0) STYLE(LINE)