Bonjour,
voici ma solution :
//base hull 15, Apitradeguru protégé
//MMS5=Average[1]
//MMS35=Average[35]
//condition1= MMS5 crosses over MMS35
//condition2= MMS35 crosses over MMS5
Condition1= Hullaverage[15] [1]> Hullaverage [15][2]
Condition2= Hullaverage[15] [1]< Hullaverage [15][2]
if Condition1 AND NOT CONDITION1[1] then
drawarrowup(barindex,low-averagetruerange[14]*1.5) coloured(102, 204, 0)
else
if Condition2 AND NOT Condition2[1] then
drawarrowdown(barindex,high+averagetruerange[14]*1.5) coloured(255, 87, 51)
endif
// Couleur du fond du graphique
//le A
IF (condition1) THEN//vert
r=144
v=238
b=144
A=100
ELSIF(condition2) THEN //rouge
r=255
v=182
b=193
A=100
else
r=undefined
v=undefined
b=undefined
A=0
endif
BACKGROUNDCOLOR(r,v,b,A)
ENDIF
return
1 user thanked author for this post.