Bonjour,
Quelqu’un peu me modifier un code si possible ?
C’est pour rajouter le sar inversé en séances
voila le code
merci d’avance 🙏
//PRC_Doji Heikin Ashi | screener
//10.01.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
// --- parameters
DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
// ---
if barindex>1 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
data=(abs(haopen - haclose) <= (hahigh - halow) * DojiSize/100)
red = haopen>haclose
green = haclose>=haopen
screener [data and green and red[1] and red[2] and red[3]]
Bonjour, vous devrez ajouter ces lignes au code.
// Parabolic SAR calculation (Standard parameters)
mySar = SAR[0.02, 0.02, 0.2]
// Condition for reversed SAR (Bullish reversal)
sarReversed = close CROSSES OVER mySar
et enfin modifier le filtre pour ajouter la nouvelle condition :
SCREENER [data AND greenCandle AND redCandle[1] AND redCandle[2] AND redCandle[3] AND sarReversed]
Ivan je les rajoutes ou ? c’est lignes ? au début au milieu ?
Stp
peut-tu le modifier tu a l’habitude,moi non.
Merci
Voici la version modifiée avec les lignes de code écrites par Ivan :
//PRC_Doji Heikin Ashi | screener
//10.01.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
// --- parameters
DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
// ---
if barindex>1 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
data=(abs(haopen - haclose) <= (hahigh - halow) * DojiSize/100)
red = haopen>haclose
green = haclose>=haopen
// Parabolic SAR calculation (Standard parameters)
mySar = SAR[0.02, 0.02, 0.2]
// Condition for reversed SAR (Bullish reversal)
sarReversed = close CROSSES OVER mySar
SCREENER [data AND greenCandle AND redCandle[1] AND redCandle[2] AND redCandle[3] AND sarReversed]
Cependant, je pense que la ligne sarReversed = close CROSSES OVER mySar devrait être écrite avec des bougies HA, plutôt qu'avec des bougies normales (je pense qu'Ivan ne l'a pas fait par inadvertance) :
Cependant, je pense que la ligne sarReversed = close CROSSES OVER mySar devrait être écrite avec des bougies HA, au lieu de bougies normales (je pense qu’Ivan ne l’a pas fait par inadvertance) :
sarReversed = haclose CROSSES OVER mySar
Robert , j’ai un code Erreur voir photo, Merci pour votre aide 🙏