Bonjour,
voici le code d’un indicateur qui m’indique une flèche pour une outsidebar :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 ! 😀