Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 905

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Please tell me what the message is and how to fix it:
2015.06.18 04:04:12.156 Memory handler: cannot allocate 33150 bytes of memory
Please tell me what the message is and how to fix it:
2015.06.18 04:04:12.156 Memory handler: cannot allocate 33150 bytes of memory
Not enough memory.
Some Expert Advisor or indicator in the terminal consumes a lot of memory, try to delete it one by one and you will find the reason. Most often it happens when the code is not optimised, or when there is a large recalculation of bars on every tick and not on a new bar.
Hello.
Can anyone tell me if it's possible to write several arrays in one Bin file at once.
Is it possible?
Example1:
void WriteData(constint n)
{
//---open file
ResetLastError();
int handle=FileOpen(path,FILE_WRITE|FILE_BIN);
if(handle!=INVALID_HANDLE)
{
FileWriteArray(handle,arr1,0,n);
FileWriteArray(handle,arr2,0,n);
//--- close file
FileClose(handle);
}
}
Or should it be like this?
Example2:
void WriteData(constint n)
{
//---open file
ResetLastError();
int handle=FileOpen(path,FILE_WRITE|FILE_BIN);
if(handle!=INVALID_HANDLE)
{
FileWriteArray(handle,arr1,0,n);
FileSeek(handle,0,SEEK_END);
FileWriteArray(handle,arr2,0,n);
//--- close file
FileClose(handle);
}
}
Friends, can you help me optimise this indicator, it is good on PC, but lags a lot on my old laptop
PS. do not need it on the chart, it is called from the Expert Advisor
Thanks in advance
Friends, can you help me optimise this indicator, it is good on PC but lags a lot on my old laptop
PS. do not need it on the chart, it is called from the Expert Advisor
Thanks in advance
i have an Expert Advisor that trades on different pairs in parallel and the more pairs the better. for each pair a separate chart is started and an EA is attached to it. but i have reached a certain limit, i have 35 running charts now, if i start more than i have problems with RAM - the terminal takes 1.1 g of RAM in the manager. The question is: is it a limitation of the program in the Windows or hardware, i.e., if I put another 2 gigabytes of operating space in a computer, the problems will disappear or Windows will not let more operating space to the terminal anyway?
CPU load on average 25% of the terminal, but it does not seem to have anything to do with it.
i have an Expert Advisor that trades on different pairs in parallel and the more pairs the better. for each pair a separate chart is started and an EA is attached to it. but i have reached a certain limit, i have 35 running charts now, if i start more than i have problems with RAM - the terminal takes 1.1 g of RAM in the manager. The question is: is it a limitation of the program in the Windows or hardware, i.e., if I put another 2 gigabytes of operating space in a computer, the problems will disappear or Windows will not let more operating space to the terminal anyway?
CPU load on average 25% of the terminal, but it's not supposed to have anything to do with it.
This is a bit too little memory, for the Windows itself needs about a gig (XP) not to make the system lag. Also, every open chart / terminal requires additional memory, plus do not forget about buffering, it also uses memory resources.
It works, then buffer gets full with some amount of data, the exchange begins to lag because of lack of memory and stop the Expert Advisor.
You can fix it by adding memory, if hardware allows it.
P.S. Nowadays it is difficult to use even a browser on 2GB (nervously)
It's a bit too small for memory, the wind itself needs about a gig (XP) not to make the system slow, also every open chart/terminal requires additional memory, plus you should not forget about buffering, it also uses memory resources.
It works, then buffer gets full with some amount of data, the exchange begins to lag because of lack of memory and stop the Expert Advisor.
You can fix it by adding memory, if hardware allows it.
P.S. Nowadays it is difficult to use even a browser on 2GB (nervously)
Only you need to consider how much memory sees the wind x32. If I remember correctly, no matter how much you put and XP will not see more than 3 giga.