Technical Help!!!

Messages
3
Likes
0
hey guys I need a little help, I am a new one so I don't know lots of things yet. I couldn't find answer anywhere so I decided to ask this question here.
So I am trying to write signal in easylanguage and I need some help. can anyone tell me how to write something like this, if open>close for 10 days. I don't understand how can I write this sentence in easylanguage "for 10 days". and another thing, if I have some signal and I want to write if that's not happening then.... how can I write "if not".
be glad if you help me and sorry for my English :D
 
Pseudo code:

flag = 1 //assume o > c for all i
For i 1 to 10 do
if o[i-1] < c[i-1] then flag = 0
 
You can do it this way also:-

Var: flag(0), i(0);
flag = 0;

for i = 0 to 9 begin
if o > c then flag = flag+1;
end;

if flag = 10 then {your condition}
if flag <> 10 then {your condition}

Good Luck..
 
Top