Bonjour,
Je débute en programmation prorealcode et j’ai un petit problème :
Je souhaite afficher un indicateur sur le graphique des bougies, mais au lieu de ça j’ai un panneau qui s’ouvre.
Pour prendre un exemple simple, je souhaite détecter des sommets ou creux en pointes en bougies Heikin Ashi et afficher une flèches sous ceux-ci.
Comment faire pour que les flèches s’affichent sous les bougies? Merci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//heiken ashi candlesticks definition//heiken ashi candlesticks definition
rge = averagetruerange [ 10 ] (close )
if barindex > 2 then
haclose= (open + close + low + high )/ 4
haopen= (haopen[ 1 ] + haclose[ 1 ] )/ 2
xHigh = Max (haOpen, haClose)
xLow = Min (haOpen, haClose)
hahigh = Max (High ,xHigh)
halow = Min (Low ,xLow)
endif
SommetEnPince = hahigh[ 1 ] = hahigh[ 2 ]
CreuxEnPince = halow[ 1 ] = halow[ 2 ]
if SommetEnPince then
DRAWARROWDOWN (barindex [ 1 ] ,high [ 1 ] + rge/ 2 )coloured (255 ,10 ,10 )
endif
if CreuxEnPince then
DRAWARROWUP (barindex [ 1 ] ,low [ 1 ] - rge/ 2 )coloured (10 ,255 ,10 )
endif
return