Screener Heikin ashi
- This topic has 4 replies, 3 voices, and was last updated 4 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
Similar topics:
Forums › ProRealTime forum Français › Support ProScreener › Screener Heikin ashi
Ci-dessous une demande qui a été envoyée à ProRealTime :
Bonjour
Je souhaiterais un Sceener avec les caractéristiques suivantes
3 bougies Heiken Ashi vertes consécutives suivi de 1 bougie rouge Heiken Ashi (Le tout a la cloture)
ou
3 bougies Heiken Ashi rouges consécutives suivi de 1 bougie verte Heiken Ashi (Le tout a la cloture)
Merci
Et une proposition de réponse :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
IF BarIndex = 0 THEN xClose = TotalPrice xOpen = Open //xHigh = max(High,max(xOpen,xClose)) //xLow = min(Low,min(xOpen,xClose)) ELSE xClose = TotalPrice xOpen = (xOpen[1] + xClose[1])/2 //xHigh = max(High,max(xOpen,xClose)) //xLow = min(Low,min(xOpen,xClose)) ENDIF condition=xclose < xopen and xclose[1] > xopen[1] and xclose[2] > xopen[2] and xclose[3] > xopen[3] screener[condition] |
Bonjour je relance ce post pour savoir si ce code est valable ? Sinon est-il possible de le corriger
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
//Réglage durée du trend HAquantity = 5 //Définition du Heikin Ashi If barindex = 0 then HAClose = totalprice HAopen = open else HAClose =totalprice HAopen =(HAopen[1]+HAClose[1])/2 endif //Calcul du Trend TrendHAbull = summation[HAquantity](HAclose[1]>HAopen[1])>= HAquantity//Trend haussier de 5 bougies Heikin Ashi TrendHAbear = summation[HAquantity](HAclose[1]<HAopen[1])>=HAquantity//Trend baissier de 5 bougies Heikin Ashi //Conditions du screener CA = TrendHABull and HAClose<HAopen// Trend haussier + Retournement CV = TrendHAbear and HAClose<HAopen//Trend baissier + Retourenement SCREENER[CA or CV] |
Je cherche à rendre réglable la variable de durée du trend (ici 5 bougies HK) et j’aimerai que le screener retourne la valeur de retournement sur la barre en cours (si le marché est actif) ou sur la dernière barre connue (s’il est inactif)
Merci de votre aide
Le code du screener comportait une erreur sur le retournement haussier avec une suite de bougies baissières consécutives.
La quantité de bougies paramétrable, c’est la première ligne du code 🙂
Ci-dessous la version corrigée.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
//Réglage durée du trend HAquantity = 5 //Définition du Heikin Ashi If barindex = 0 then HAClose = totalprice HAopen = open else HAClose =totalprice HAopen =(HAopen[1]+HAClose[1])/2 endif //Calcul du Trend TrendHAbull = summation[HAquantity](HAclose[1]>HAopen[1])= HAquantity//Trend haussier de 5 bougies Heikin Ashi TrendHAbear = summation[HAquantity](HAclose[1]<HAopen[1])=HAquantity//Trend baissier de 5 bougies Heikin Ashi //Conditions du screener CA = TrendHABull and HAClose<HAopen// Trend haussier + Retournement CV = TrendHAbear and HAClose>HAopen//Trend baissier + Retourenement SCREENER[CA or CV] |
Find exclusive trading pro-tools on