Sorry, You cannot deallocate memory after iFunctions calling
How I can resolve this problem?
"How I can resolve this problem?
Restart MT4 and the Operating System will release resources previously allocted to it
Restart MT4 and the Operating System will release resources previously allocted to it
Remove expert or close chart
"In the history center I have 1 minute data from 2001:01:01 and I set max bars in history and max bars in chart (in the option chart) at 2.500.000.
I have to use the function below in 10 different charts and my pc go in crash becouse the needed allocated memory ram is higher 2 GB ( I have 1 GB ram)"
--------
25,000,000 bars of chart data should all fit into 64k ram, I guess.
Increase virtual memory (paging file) or go buy some more memory (IMHO)
I have to use the function below in 10 different charts and my pc go in crash becouse the needed allocated memory ram is higher 2 GB ( I have 1 GB ram)"
--------
25,000,000 bars of chart data should all fit into 64k ram, I guess.
Increase virtual memory (paging file) or go buy some more memory (IMHO)
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
I noticed this problem when I use the function
iTime( parameter........ )
iOpen( parameter........ )
iHigh( parameter........ )
iLow( parameter........ )
iClose( parameter........ )
iVolume( parameter........ )
I wrote a simple code for test as following
int start()
{
double a = iTime(Symbol(),1,1);
double b = iOpen(Symbol(),1,1);
double c = iHigh(Symbol(),1,1);
double d = iLow(Symbol(),1,1);
double e = iClose(Symbol(),1,1);
double f = iVolume(Symbol(),1,1);
}
Before inserting the code on daily chart the allocated memory ram is 435 MB on task manager; after inserting the
code on chart and the new tick arrived , the allocated memory ram (on task manager) jumped at 654 MB.
In the history center I have 1 minute data from 2001:01:01 and I set max bars in history and max bars in chart (in the option chart) at 2.500.000.
I have to use the function below in 10 different charts and my pc go in crash becouse the needed allocated memory ram is higher 2 GB ( I have 1 GB ram)
If I set in the option chart the max bars in history and max bars in chart at 100 , my history file wil be deleted and will rebuild with 100 bars data only.
How I can resolve this problem?
How I can deallocated memory after that I have used the function?
eugenio