Cách sửa lỗi history base not enough memory trên mt4 năm 2024

MetaTrader 4, also known as MT4, is a popular trading platform used by many traders around the world. It offers a wide range of features and tools that make it an ideal platform for both novice and experienced traders. However, one common issue that traders face when using MT4 is the “not enough memory” error.

This error can be frustrating and can potentially cause you to miss out on profitable trading opportunities. In this article, we’ll take a closer look at what causes the MT4 not enough memory error and provide some solutions to help you fix it.

Cách sửa lỗi history base not enough memory trên mt4 năm 2024
MT4 Not Enough Memory

What Causes the MT4 Not Enough Memory Error?

The “not enough memory” error in MT4 typically occurs when the platform is running low on available memory. This can happen for a variety of reasons, including:

  1. Running too many indicators or EAs: Indicators and expert advisors (EAs) can be resource-intensive and can use up a lot of memory. If you have too many running at once, it can cause the platform to run out of memory.
  2. Running other programs at the same time: If you’re running other memory-intensive programs at the same time as MT4, it can cause the platform to run out of memory.
  3. Insufficient RAM: If your computer doesn’t have enough RAM to support the programs you’re running, it can cause them to run out of memory.

How to Fix the MT4 Not Enough Memory Error

If you’re experiencing the MT4 not enough memory error, there are several solutions you can try to fix the issue.

  1. Close unnecessary programs: If you’re running other memory-intensive programs at the same time as MT4, try closing them to free up memory. This can include web browsers, media players, and other trading platforms.
  2. Reduce the number of indicators or expert advisors: If you have too many indicators or EAs running at once, try reducing the number or disabling some of them. This can free up memory and help prevent the “not enough memory” error from occurring.
  3. Increase your computer’s RAM: If your computer doesn’t have enough RAM to support the programs you’re running, consider upgrading to a higher capacity RAM. This can provide more memory for your programs to use and help prevent the “not enough memory” error from occurring.
  4. Use a VPS: A virtual private server (VPS) is a remote server that you can access from anywhere with an internet connection. By using a forex VPS, you can run MT4 and other memory-intensive programs on a remote server, freeing up memory on your local computer. This can help prevent the “not enough memory” error from occurring.
  5. Use a lighter trading platform: If none of the above solutions work, you may want to consider using a lighter trading platform that uses less memory. There are many trading platforms available that are designed to be lightweight and can run on older or less powerful computers.

Final Thoughts

The MT4 not enough memory error can be frustrating, but there are several solutions available to help you fix the issue. By closing unnecessary programs, reducing the number of indicators or EAs, increasing your computer’s RAM, using a VPS, or using a lighter trading platform, you can help prevent the error from occurring and ensure that you don’t miss out on profitable trading opportunities.

It’s also important to keep in mind that while these solutions can help fix the immediate issue, it’s important to address the underlying cause of the error. If you find yourself frequently experiencing the “not enough memory” error, it may be a sign that your computer is not powerful enough to handle the programs you’re running. In this case, upgrading your computer or using a VPS may be the best.

Cách sửa lỗi history base not enough memory trên mt4 năm 2024

Cách sửa lỗi history base not enough memory trên mt4 năm 2024

Self-confessed Forex Geek spending my days researching and testing everything forex related. I have many years of experience in the forex industry having reviewed thousands of forex robots, brokers, strategies, courses and more. I share my knowledge with you for free to help you learn more about the crazy world of forex trading! Read more about me.

Histories are on disk, nothing to do with a ram problem. If the EA generates lots of objects, reducing even more (like 5k) may be necessary.

[Deleted] 2011.05.27 13:08

Untrue, had this problem on my laptop with 2GB ram. Loaded EURUSD 1m data from 1.1.2001 and suddenly the whole thing went to shambles, response time in seconds, 50-60% cpu utilization, 50% being metatrader. Didn't know what was going on (I had no EAs or indicators, only 1 chart with the chart data) until I set the bars in chart to something low and nice as I stated above. BArs in history is wrttien on disk and doesnt do anything here, but bars in chart does.

Computer turned to normal then. (was using core2 duo hp workstation with 2gb of ram on windows 7. I never had this problem on my desktop computer.

EDIT: umm i think you may have been answering a different question when you said that they don't have anything to do with ram problem (the one whether removing histories would improve the performace). To clarify that one, it would, but indirectly as your charts would not be filled with that much data. You can keep your histories and just set the bars in chart to a lower value.

ASAR 2011.05.28 18:37

forexCoder:

Untrue, had this problem on my laptop with 2GB ram. Loaded EURUSD 1m data from 1.1.2001 and suddenly the whole thing went to shambles, response time in seconds, 50-60% cpu utilization, 50% being metatrader. Didn't know what was going on (I had no EAs or indicators, only 1 chart with the chart data) until I set the bars in chart to something low and nice as I stated above. BArs in history is wrttien on disk and doesnt do anything here, but bars in chart does.

Computer turned to normal then. (was using core2 duo hp workstation with 2gb of ram on windows 7. I never had this problem on my desktop computer.

EDIT: umm i think you may have been answering a different question when you said that they don't have anything to do with ram problem (the one whether removing histories would improve the performace). To clarify that one, it would, but indirectly as your charts would not be filled with that much data. You can keep your histories and just set the bars in chart to a lower value.

My thanks to both of you for all of your helpfull replies. I'll pursue the suggestion to reduce the bars in chart and see how that fairs.

ASAR 2011.05.30 01:41

forexCoder:

Untrue, had this problem on my laptop with 2GB ram. Loaded EURUSD 1m data from 1.1.2001 and suddenly the whole thing went to shambles, response time in seconds, 50-60% cpu utilization, 50% being metatrader. Didn't know what was going on (I had no EAs or indicators, only 1 chart with the chart data) until I set the bars in chart to something low and nice as I stated above. BArs in history is wrttien on disk and doesnt do anything here, but bars in chart does.

Computer turned to normal then. (was using core2 duo hp workstation with 2gb of ram on windows 7. I never had this problem on my desktop computer.

EDIT: umm i think you may have been answering a different question when you said that they don't have anything to do with ram problem (the one whether removing histories would improve the performace). To clarify that one, it would, but indirectly as your charts would not be filled with that much data. You can keep your histories and just set the bars in chart to a lower value.

Okay, now that I've reduced the history and chart bars to 250000, I can backtest but I can't optimize for more than a few minutes before CPU reaches 100% and MT4 stalls which is curious since under the previous +250000 bar conditions, I had been able to optimize an EA for nearly a week with no problems. Any suggestions on how I overcome this?

[Deleted] 2011.05.30 02:38

Back testing, same as live trading (or forward testing, both mean "compute-by-real-time-tick-data") shouldn't have adverse (or even more importantly gradually worse) effects on computer's performace. If it does, this most likely means that you have some data arrays that just keep filling up. At least my experience taught me that.

You might want to check how your code behaves.

ASAR 2011.05.30 23:41

forexCoder:

Back testing, same as live trading (or forward testing, both mean "compute-by-real-time-tick-data") shouldn't have adverse (or even more importantly gradually worse) effects on computer's performace. If it does, this most likely means that you have some data arrays that just keep filling up. At least my experience taught me that.

You might want to check how your code behaves.

It's not the backtesting that I'm currently having the problem with, that seems to be okay. The problem is currently occuring with optimization.

[Deleted] 2011.05.31 02:16

It's normal then that the process takes time and cpu and ram, however the computer's performace should be smooth if you have at least a cpu that can run 2 threads so dual core or core 2 duo. I have optimized on my laptop (core2duo, 2g ram) a strategy for 2 days, and the laptop was under 60% performace and some heavy ram usage, but the system and MT were responsive through the whole thing.