Need help! (Basic code) New comment Kittamet Sirinyamas 2019.06.01 11:38 Hi experts, I have learnt about mql4 and stuck with "for" loop.plz see the script. void OnStart() { int e =2; for(int i=1;i<3;i++) { for(int j=i;j<j+e;j++) { Print(j); } } } It's not complex at all.But The result maked me so confuse. I think the shown value should be 1,2,2,3. are they correct? Thank you. Discussion of article "An attempt at developing an EA constructor" Need help with a script. plz give me some advice about coding Konstantin Nikitin 2019.06.01 12:41 #1 int e =2; for(int j=i;j<j+e;j++)This is an endless loop. You get TRUE all the time. Kittamet Sirinyamas 2019.06.01 16:22 #2 Konstantin Nikitin: This is an endless loop. You get TRUE all the time.Thank you Konstantin New comment
Hi experts,
I have learnt about mql4 and stuck with "for" loop.plz see the script.
It's not complex at all.But The result maked me so confuse.
I think the shown value should be 1,2,2,3. are they correct?
Thank you.