Bonjour,
Quelqu’un peu si possible rajouter a ce code, la SMA 20 Ascendante en séance.
Merci d’avance
Cordialement
IF BarIndex = 0 THEN
haClose = Close
haOpen = Open
ELSE
haClose = (Open + High + Low + Close) / 4
haOpen = (haOpen[1] + haClose[1]) / 2
ENDIF
cHA = haClose > haOpen
myTenkan = TenkanSen[9, 26, 52]
cTenkan = myTenkan > myTenkan[1]
mySMA = Average[7](Close)
cSMA = mySMA > mySMA[1]
mySAR = SAR[0.02, 0.02, 0.2]
cSAR = Close > mySAR and close[1]<mysar[1]
SCREENER[cHA AND cTenkan AND cSMA AND cSAR]
Voici le code modifié (qui n’utilise PAS les bougies HA pour certains indicateurs et conditions) :
IF BarIndex = 0 THEN
haClose = Close
haOpen = Open
ELSE
haClose = (Open + High + Low + Close) / 4
haOpen = (haOpen[1] + haClose[1]) / 2
ENDIF
cHA = haClose > haOpen
myTenkan = TenkanSen[9, 26, 52]
cTenkan = myTenkan > myTenkan[1]
mySMA = Average[7](Close)
cSMA = mySMA > mySMA[1]
mySAR = SAR[0.02, 0.02, 0.2]
cSAR = Close > mySAR and close[1]<mysar[1]
Sma20 = average[20,0](Close)
Sma = Sma20 > Sma20[1]
SCREENER[cHA AND cTenkan AND cSMA AND cSAR AND Sma]
Voici le code modifié (qui utilise des bougies HA) :
IF BarIndex = 0 THEN
haClose = Close
haOpen = Open
ELSE
haClose = (Open + High + Low + Close) / 4
haOpen = (haOpen[1] + haClose[1]) / 2
ENDIF
cHA = haClose > haOpen
myTenkan = TenkanSen[9, 26, 52]
cTenkan = myTenkan > myTenkan[1]
mySMA = Average[7](haClose)
cSMA = mySMA > mySMA[1]
mySAR = SAR[0.02, 0.02, 0.2]
cSAR = haClose> mySAR and haClose[1]<mysar[1]
Sma20 = average[20,0](haClose)
Sma = Sma20 > Sma20[1]
SCREENER[cHA AND cTenkan AND cSMA AND cSAR AND Sma]