Bonjour,
Je rencontre un problème sur la détection de croisement de moyenne mobile exponetielles
Voici mon code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
timeframe (1 minute )
EMA20M1 = ExponentialAverage [ 15 ] (close )
EMA50M1 = ExponentialAverage [ 50 ] (close )
EMA100M1 = ExponentialAverage [ 100 ] (close )
if EMA20M1 CROSSES OVER EMA50M1 then
DRAWARROWUP (barindex ,0 ) COLOURED (0 ,255 ,0 )
endif
if EMA20M1 CROSSES OVER EMA100M1 then
DRAWARROWUP (barindex ,0 ) COLOURED (0 ,255 ,0 )
endif
if EMA50M1 CROSSES OVER EMA100M1 then
DRAWARROWUP (barindex ,0 ) COLOURED (0 ,255 ,0 )
endif
RETURN
Par contre ça ne fait pas le résultat attendu =(
En effet j’ai 2 flèches up alors que j’ai pas de croisements… je comprend pas trop pourquoi.
La première et la seconde apparaisse alors que je ne suis pas en croisement, la troisième OK
EDIT : je viens de voir mon erreur EMA20 est en 15… #Boulet