Download MetaTrader 5
To add comments, please log in or register
Publish your programs in the Market. Make money with your knowledge!
Filmon Yohannes
474
Filmon Yohannes 2014.05.07 10:58 

hat is this error about "Memory handler: cannot allocate 3738370048 bytes of memory"?

Have read some people say it is problem of computer memory overflow, but the issue is the computer has 64GB memory and over 90% of it is unused. So the memory overflow thing just does not add up literally.   

Also they said the error is because of the maximum chart bars, but that also does not make any good sense, because the Max Chart Bar History is set to the lowest amount on the MT4 terminal setting.  

FYI, the EA works perfectly fine on a backtest but the problem with the journal error of "Memory handler: cannot allocate 3738370048 bytes of memory" comes only on live trading.

What is your take on this? I'm not sure what is the reason for the error... 

 

graziani
1890
graziani 2014.05.07 11:30  
philmon:

What is this error about "Memory handler: cannot allocate 3738370048 bytes of memory"?

Have read some people say it is problem of computer memory overflow, but the issue is the computer has 64GB memory and over 90% of it is unused. So the memory overflow thing just does not add up literally.   

Also they said the error is because of the maximum chart bars, but that also does not make any good sense, because the Max Chart Bar History is set to the lowest amount on the MT4 terminal setting.  

FYI, the EA works perfectly fine on a backtest but the problem with the journal error of "Memory handler: cannot allocate 3738370048 bytes of memory" comes only on live trading.

What is your take on this? I'm not sure what is the reason for the error... 

 

Check if there is a issue with not releasing previously allocated memory. I also had similar issue in live mode with dynamic allocation within OnInit() i couldn't solve: ArrayFree() didn't work for a reason i couldn't get a grip of, so i went static.

Alain Verleyen
Moderator
28522
Alain Verleyen 2014.05.07 12:55  
philmon:

What is this error about "Memory handler: cannot allocate 3738370048 bytes of memory"?

Have read some people say it is problem of computer memory overflow, but the issue is the computer has 64GB memory and over 90% of it is unused. So the memory overflow thing just does not add up literally.   

Also they said the error is because of the maximum chart bars, but that also does not make any good sense, because the Max Chart Bar History is set to the lowest amount on the MT4 terminal setting.  

FYI, the EA works perfectly fine on a backtest but the problem with the journal error of "Memory handler: cannot allocate 3738370048 bytes of memory" comes only on live trading.

What is your take on this? I'm not sure what is the reason for the error... 

 

Please don't double post. I had to remove your other topic.

Wrong MT4 settings or coding error.  Please show some code to reproduce the issue.

Filmon Yohannes
474
Filmon Yohannes 2014.05.07 13:59  
graziani:

Check if there is a issue with not releasing previously allocated memory. I also had similar issue in live mode with dynamic allocation within OnInit() i couldn't solve: ArrayFree() didn't work for a reason i couldn't get a grip of, so i went static.

Hey thanks for the suggestions. Wish i could communicate on skilled coders level, have quite limited skills of coding myself and that is why I paid a coder to do it for me, but he is not too sure what the problem is either; although he promised me he will get back at me with some answers i could not any longer wait to find solution to this problem with live training error.

Even though the error say memory overflow, for now it is safe to say lack of enough memory is not the real problem, but a confused MT4 terminal issue?

Filmon Yohannes
474
Filmon Yohannes 2014.05.07 14:04  
angevoyageur:

Please don't double post. I had to remove your other topic.

Wrong MT4 settings or coding error.  Please show some code to reproduce the issue.

Hi, you're right i did post the other one by mistake. 

Alain Verleyen
Moderator
28522
Alain Verleyen 2014.05.07 18:04  
philmon:

Hey thanks for the suggestions. Wish i could communicate on skilled coders level, have quite limited skills of coding myself and that is why I paid a coder to do it for me, but he is not too sure what the problem is either; although he promised me he will get back at me with some answers i could not any longer wait to find solution to this problem with live training error.

Even though the error say memory overflow, for now it is safe to say lack of enough memory is not the real problem, but a confused MT4 terminal issue?

http://forum.mql4.com/62981
Unknow Issue - MQL4 forum
  • forum.mql4.com
Unknow Issue - MQL4 forum
Alain Verleyen
Moderator
28522
Alain Verleyen 2014.05.07 18:07  

See if this topic can help : https://www.mql5.com/en/forum/5620

Filmon Yohannes
474
Filmon Yohannes 2014.05.07 20:29  
The EA does draws quite a bit of lines/objects on the chart that might be the problem. But still misleading and not clear to me how all was working nicely on a backtest but soon as live charts involved all over sudden not enough memory. Bad terminal!!
David Raine
140
David Raine 2014.05.07 21:18  

It is my view that this problem is in the MQL5/MQL4 current release.

Hopefully the software programmers will realize this soon enough.

Alain Verleyen
Moderator
28522
Alain Verleyen 2014.05.07 21:52  
skaboy:

It is my view that this problem is in the MQL5/MQL4 current release.

Hopefully the software programmers will realize this soon enough.

This is pure speculation.
Alain Verleyen
Moderator
28522
Alain Verleyen 2014.05.07 21:53  
philmon:
The EA does draws quite a bit of lines/objects on the chart that might be the problem. But still misleading and not clear to me how all was working nicely on a backtest but soon as live charts involved all over sudden not enough memory. Bad terminal!!
Why bad terminal ? How do you know that ?
/ /12
To add comments, please log in or register