rebond sur points pivots
- This topic has 4 replies, 3 voices, and was last updated 7 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 › rebond sur points pivots
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é
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
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:
1 |
SCREENER [SIGNAL] |
Sinon, je viens de retrouver ce code de screener pour la détection de rebonds sur les points pivots.
Find exclusive trading pro-tools on