Hi, it’s a pleasure to post my first message here
A setup found with average mobile give a value to signal S1
I want to give a value to S2, if S1 was at least one time equal to 1 during the last 50 periods and condition3
Here as I tried but i failed 🙁
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
Seems that you already answered to your own question in the same french topic, am I right?
Right, the solution to “if S1 was at least one time equal to 1 during the last 50 periods and condition3″ is
if summation[50](s1) >0 and condition3