Download MetaTrader 5

For Loop problems with counting. Please help!

To add comments, please log in or register
Do you have idle PCs? Connect them to MQL5 Cloud Network and earn money!
Kenny
13
Kenny 2015.11.18 22:01 

Hello,

First of all: please excuse my English skills, it's not my native language.

I'm new here and since I started learning MQL this question might be dumb but I really don't know what else to do to solve  this problem.

I try to make a For Loop which counts from 0 to 3999. The problem is that it starts from 3750 not from 0. Is 250 a limit for the "for loop"?

If there is a solution for this, how can I solve it?

for(EMAvg=0;EMAvg<=3999;EMAvg++)
      Print(EMAvg);

Thanks in advance

JBeats 

Keith Watford
Moderator
9614
Keith Watford 2015.11.18 22:14  

It doesn't start from 3750.

When there are a lot of prints, the Experts tab doesn't record all of them.

You have to open the experts log and you will see that it did print everything

Kenny
13
Kenny 2015.11.18 22:22  

Oh... sorry I didn't knew that. Thank you so much!

I was trying to solve this for 3-4 days lol.

 

Thanks again! 

whroeder1
14480
whroeder1 2015.11.19 12:00  
GumRai: You have to open the experts log and you will see that it did print everything
Right click on an entry -> Open
To add comments, please log in or register