Bonjour à tous, je suis heureux de publier mon premier post ici
Je relève un setup de moyennes mobiles (setup1a ou setup1b) et attribue une valeur à mon signal S1,
Je veux ensuite attribuer une valeur à mon signal S2, si le signal S1 a été égal à 1 au moins une fois sur les 50 dernières périodes et une condition3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
If Setup1a then S1 = 1 Elsif Setup1b then S1 = -1 Else S1 = 0 Endif if summation[50](S1=1)>0 and condition3 then S2 = 1 elsif summation[50](S1=-1)> 0 and condition3 then S2 = -1 else S2 = 0 endif |