Bonjour,
voici le code d’un indicateur qui m’indique une flèche pour une outsidebar :
SignalbarHeight=5
if range>=SignalbarHeight*pipsize then
if high>high[1] and close<low[1] then
bear=1
bull=0
elsif low<low[1] and close>high[1] then
bull=1
bear=0
else
bear=0
bull=0
endif
else
bear=0
bull=0
endif
offset=AverageTrueRange[14](close)/2
if bear then
DRAWARROWDOWN(barindex, high+offset) coloured(255,0,0)
elsif bull then
DRAWARROWUP(barindex, low-offset) coloured(0,255,0)
endif
return
J’aimerais avoir un screener qui me permette de trouver toutes les OutsideBar en TF 1H (par exemple) sur le forex ou en 5 min sur les index. Merci ! 😀
Medrci de mettre à jour le pays dans votre profil.
Voilà:
SignalbarHeight=5
if range>=SignalbarHeight*pipsize then
if high>high[1] and close<low[1] then
bear=1
bull=0
elsif low<low[1] and close>high[1] then
bull=1
bear=0
else
bear=0
bull=0
endif
else
bear=0
bull=0
endif
//offset=AverageTrueRange[14](close)/2
if bear then
//DRAWARROWDOWN(barindex, high+offset) coloured(255,0,0)
elsif bull then
//DRAWARROWUP(barindex, low-offset) coloured(0,255,0)
endif
x = Bull OR Bear
SCREENER [x] (x AS "OutBAR")