Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 959

 
Константин:
Professionals, advise what to do? I start MT4 only several times a day, in the window with charts I look at signals of my Expert Advisor. I have a problem with the fact that my Expert Advisor starts working immediately with the first tick and the history from the previous visit is loaded. How to make make data load first, and then the Expert Advisor works. I have some problems with it. I have a simple profile with charts first, and then a chart with Expert Advisor...
if(AccountNumber() == 0) {

        return;

}
 
Igor Kryuchkov:

At least since 2013.

2013 is a bad year for testing for some reason :)
 
Yevhenii Levchenko:
2013 is a bad year for testing for some reason :)

That's why they start with it at least )

 
Igor Kryuchkov:

Please explain where to add this in the Expert Advisor's code. And as far as I understood this function returns the account number, what does it have to do with downloading missing history?

Perhaps this is important, but I meant my indicator, not the EA, sorry. When I start the window with the indicator, I want it to load the missed data first and then to calculate the indicator.
 
Константин:

Please explain where to add this in the Expert Advisor's code. And as far as I understood this function returns the account number, what does it have to do with downloading missing history?

Perhaps this is important, but I meant my indicator, not the EA, sorry. When you run the window with the indicator, it should first load the missed data and then calculate the indicator.
The account number is not zero when the mt is fully loaded and running. Add this to your main function, OnCalculate for example
 
Is the drive always heavily loaded during all ticks testing?
 
Yevhenii Levchenko:
Is the drive always heavily loaded during all ticks testing?

There is not enough RAM and the system is using the swap file.

 
Alexey Viktorov:

There is not enough RAM and the system is using a swap file.



Enough RAM seems to be available... Is there any way to reduce the load on the drive when testing by itself?

 
Yevhenii Levchenko:



Enough RAM seems to be available... Is there any way to reduce the load on the drive when testing on its own?

A properly written EA can't clog up the disk like that. Strange...
 

Something is shrinking hard on the drive :D

I used to download quotes... terminal folder in AppData weighed about 5 gb. There was more than 150gb free on the disk. Now I looked it up - 100gb. What's going on?

Stopped the test... looked it up - 60gb folder. I must have done something wrong...

Found it. The logs folder in the tester folder got bigger. This is what came up:


I was getting a lot of Print output there. Is it because of this I guess, or is it different?