Bonjour,
j’ai essayé de créer un screener avec des rebonds sur points pivots
Je ne sais pas si mon code ne pourrait pas être amélioré
Once dailyPivot = undefined
Once dailyR1 = undefined
Once dailyS1 = undefined
Once dailyR2 = undefined
Once dailyS2 = undefined
Once dailyR3 = undefined
Once dailyS3 = undefined
If Day>Day[1] then
If mode = 0 then
dailyPivot = (DHigh(1) + DLow(1) + Close[1]) / 3
Elsif mode = 1 then
dailyPivot = (Open + DHigh(1) + DLow(1) + Close[1]) / 4
Elsif mode = 2 then
dailyPivot = (DHigh(1) + DLow(1) + Close[1]*2) / 4
Else
dailyPivot = (Open*2 + DHigh(1) + DLow(1)) / 4
Endif
dailyR1 = 2*dailyPivot - DLow(1)
dailyS1 = 2*dailyPivot - DHigh(1)
dailyR2 = dailyPivot + (DHigh(1) - DLow(1))
dailyS2 = dailyPivot - (DHigh(1) - DLow(1))
dailyR3 = dailyR1 + (DHigh(1) - DLow(1))
dailyS3 = dailyS1 - (DHigh(1) - DLow(1))
Endif
if close>=(open-close)*5 then
doji=1
else
doji=0
endif
if doji>=dailypivot then
signal=1
else
signal=0
endif
if close>=(open-close)*5 then
doji=1
else
doji=0
endif
if doji>=dailyR1 then
signal=1
else
signal=0
endif
If close>=(open-close)*5 then
doji=1
else
doji=0
endif
if doji>=dailyR2 then
signal=1
else
signal=0
endif
If close>=(open-close)*5 then
doji=1
else
doji=0
endif
if doji>=dailyR3 then
signal=1
else
signal=0
endif
If close>=(open-close)*5 then
doji=1
else
doji=0
endif
if doji>=dailyS1 then
signal=1
else
signal=0
endif
If close>=(open-close)*5 then
doji=1
else
doji=0
endif
if doji>=dailyS2 then
signal=1
else
signal=0
endif
If close>=(open-close)*5 then
doji=1
else
doji=0
endif
if doji>=dailyS3 then
signal=1
else
signal=0
endif
SCREENER (SIGNAL)
Une erreur récurrente pour un screener, c’est de mettre la condition à tester entre parenthèses, et c’est ce que tu as fait 🙂 Il faut la mettre entre crochets:
SCREENER [SIGNAL]
Sinon, je viens de retrouver ce code de screener pour la détection de rebonds sur les points pivots.
merci beaucoup,
je vais étudier la question
bonjour
je recherche quelque chose de plus simple
je souhaiterais juste avoir un screnners lorsque l on arrive a 1% du point pivot r3
est ce qu il y a ca quelque part
merci
r3 ou s3 pour etre plus precis