Bonjour à Tous, Bonjour Nicolas,
je souhaite mettre une alerte sous forme de flèche ou autre, lorsque :
la sma50 baissière rencontre la bollinger sup haussière
//# - BB et Sma50
rge = averagetruerange[2](close)
Sma50Dwn = Average[50][0] < Average[50][1]
Sma50Up = Average[50][0] > Average[50][1]
//Boll sup haussière
UbUp = BollingerUp[20][0] > BollingerUp[20][1]
//Boll inf baissière
LbDwn = BollingerDown[20][0] < BollingerDown[20][1]
If Sma50Dwn CROSSES UNDER UbUp then
DRAWARROWDOWN(barindex[0],high[1]+0.5*rge)coloured(0,0,255)
drawtext("CBis", barindex[0],high[1]+rge, Dialog,Bolditalic,10) coloured(0,0,255)
endif
If Sma50Up CROSSES OVER LbDwn then
DRAWARROWUP(barindex[0],low[1]-0.5*rge)coloured(0,0,255)
drawtext("CBis",barindex[0],low[1]-rge,Dialog,Bolditalic,10) coloured(0,0,255)
endif
RETURN
[attachment file=”111422″]
et vice-versa :
la sma50 haussière rencontre la bollinger inférieure baissière.
Et … rien ne fonctionne et pourtant, il me semble que c’est un indicateur simple à faire à moins que les bollingers ne se traitent de façon particulière
Je mets une copie de croisement de la sma50 baissière (rouge marbré) avec la bollinger sup haussière (blanche) et mes lignes de code –
Merci de votre aide
//# - BB et Sma50
rge = averagetruerange[2](close)
Sma50Dwn = Average[50][0] < Average[50][1]
Sma50Up = Average[50][0] > Average[50][1]
UbUp = BollingerUp[20][0]
LbDwn = BollingerDown[20][0]
If Sma50Dwn CROSSES UNDER UbUp then
DRAWARROWDOWN(barindex[0],high[1]+0.5*rge)coloured(0,0,255)
//drawtext("●", barindex[0],high[1]+rge, Dialog,Bold,12) coloured(255,0,0)
drawtext("CBis", barindex[0],high[1]+rge, Dialog,Bolditalic,10) coloured(0,0,255)
endif
If Sma50Up CROSSES OVER LbDwn then
DRAWARROWUP(barindex[0],low[1]-0.5*rge)coloured(0,0,255)
//drawtext("●",barindex[0],low[1]-rge,Dialog,Bold,12) coloured(255,255,255)
drawtext("CBis",barindex[0],low[1]-rge,Dialog,Bolditalic,10) coloured(0,0,255)
endif
RETURN