Ci-dessous une demande qui a été envoyée à ProRealTime :
Je voulais un screener sur actions journalières pour détecter le retournement haussier en bougies Heikin-Ashi après 5 bougies baissières.
Soit 5 bougies baissières suivies d’un bougie haussière qui est aussi haussière en bougie normale.
Merci de votre aide.
Et une proposition de réponse :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
timeframe(daily) If barindex = 0 then xopen = open xClose = totalprice else xClose =totalprice xopen =(xopen[1]+xClose[1])/2 endif ca1=xclose[5] < xopen[5] ca2=xclose[4] < xopen[4] ca3=xclose[3] < xopen[3] ca4=xclose[2] < xopen[2] ca5=xclose[1] < xopen[1] ca6=xclose > xopen ca7=close > open buysell=ca1 and ca2 and ca3 and ca4 and ca5 and ca6 and ca7 SCREENER[BuySell](Variation AS"Var") |