• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 11:49pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 11:49pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Basket trading manager & trade handler 1 reply

Binary Options - How not to get stopped out 42 replies

MT4 Strategy Tester memory question 7 replies

MT4 Error Handler 3 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

2009.03.11 15:41:15Tester memory handler: tester stopped because not enough memory

  • Post #1
  • Quote
  • First Post: Mar 11, 2009 7:12pm Mar 11, 2009 7:12pm
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 28 y/o Investor/Trader/Programmer | 5,016 Posts
I'm getting this error code whenever I try one of my massive backtests.

Inserted Code
2009.03.11 15:41:15    Tester memory handler: tester stopped because not enough memory

Any way around that? I already have 16GB of RAM
  • Post #2
  • Quote
  • Mar 11, 2009 7:55pm Mar 11, 2009 7:55pm
  •  Rabid
  • Joined Jan 2008 | Status: Lunatic Supreme | 1,840 Posts
Reduce the size of the data? About the only way I can think of.

Maybe MT4 has a memory limit you can tweak.
  • Post #3
  • Quote
  • Mar 12, 2009 2:12pm Mar 12, 2009 2:12pm
  •  kd3726
  • | Joined Feb 2009 | Status: Member | 121 Posts
how big is the log file? according to this it stays open while the ea runs. http://articles.mql4.com/138
  • Post #4
  • Quote
  • Jul 9, 2009 8:04am Jul 9, 2009 8:04am
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 28 y/o Investor/Trader/Programmer | 5,016 Posts
How could I limit the log file? Have the EA rewrite it while it runs? Or maybe find the log file in the directory and set it to "Read Only"?
  • Post #5
  • Quote
  • Jul 9, 2009 4:47pm Jul 9, 2009 4:47pm
  •  FrinkFX
  • | Joined May 2009 | Status: Member | 251 Posts
the log files can grow to 20GB
  • Post #6
  • Quote
  • Jul 9, 2009 4:52pm Jul 9, 2009 4:52pm
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 28 y/o Investor/Trader/Programmer | 5,016 Posts
That doesn't help me...

Take this backtest for example: http://www.forexfactory.com/showthread.php?t=98048

It took 3 days, 16GB of ram, a 3 ghz computer, and an extra 60GB in a paging file, and I still couldn't finish all 6 months of the backtest.

The best solution as I can see it, is to just delete the log file as it grows.
  • Post #7
  • Quote
  • Jul 9, 2009 11:17pm Jul 9, 2009 11:17pm
  •  trendchaser
  • | Membership Revoked | Joined Oct 2007 | 2,124 Posts
iv noticed a mt4 bug, it seems ram doesnt release, until u exit mt4, so each time i run any test, it consumes new ram, eventually i run out

maybe that bug is effecting you?
  • Post #8
  • Quote
  • Jul 10, 2009 9:18am Jul 10, 2009 9:18am
  •  FrinkFX
  • | Joined May 2009 | Status: Member | 251 Posts
Quoting Ronald Raygun
Disliked
That doesn't help me...

Take this backtest for example: http://www.forexfactory.com/showthread.php?t=98048

It took 3 days, 16GB of ram, a 3 ghz computer, and an extra 60GB in a paging file, and I still couldn't finish all 6 months of the backtest.

The best solution as I can see it, is to just delete the log file as it grows.
Ignored
That's why I hate MT4. Well the strategy tester at least. I think the developers must have added it as an afterthought because it's a horrible horible piece of software.
  • Post #9
  • Quote
  • Jul 10, 2009 9:43am Jul 10, 2009 9:43am
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 28 y/o Investor/Trader/Programmer | 5,016 Posts
Quoting trendchaser
Disliked
iv noticed a mt4 bug, it seems ram doesnt release, until u exit mt4, so each time i run any test, it consumes new ram, eventually i run out

maybe that bug is effecting you?
Ignored
It's the first backtest after I open it.



I guess my question is: Where is the expert log file? I'm going to change it to "read-only" and hopefully that fixes my problem.
  • Post #10
  • Quote
  • Jul 10, 2009 10:27am Jul 10, 2009 10:27am
  •  melpheos
  • Joined Jan 2007 | Status: Stochastic pipster | 1,657 Posts
I did a backtest 3-4 days ago with more than 10000 possibilities and the test went fine so i would say there is also a relation with the complexity of the EA.
  • Post #11
  • Quote
  • Jul 10, 2009 10:38am Jul 10, 2009 10:38am
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 28 y/o Investor/Trader/Programmer | 5,016 Posts
The EA isn't complex except in the sense that the orders become so large that they are broken down into 9999-lot sized trades.

The lot requirements can get pretty high, and right before these memory errors pop up, the EA opening and maintaining as many as 5,000 trades.
  • Post #12
  • Quote
  • Jul 10, 2009 12:49pm Jul 10, 2009 12:49pm
  •  Rabid
  • Joined Jan 2008 | Status: Lunatic Supreme | 1,840 Posts
If deleting the log file doesn't help, perhaps you could break the test into 2 time frames?

You're probably running into some kind of compounding problem, perhaps w/ the lots. If you could isolate what element is causing it perhaps you could code around it?
  • Post #13
  • Quote
  • Jul 10, 2009 1:02pm Jul 10, 2009 1:02pm
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 28 y/o Investor/Trader/Programmer | 5,016 Posts
I am definitely running into a compounding problem Rabid. I have a section in the code which limits the lot size, and I have been able to run the EA through all 6 months.

by the end of month 3, the EA is around $150 billion. I figure at that rate of growth, the system can hit as much as 100 trillion by the end of the test. I can't find out until I can run the backtest all the way to the end =D
  • Post #14
  • Quote
  • Jul 10, 2009 7:30pm Jul 10, 2009 7:30pm
  •  Rabid
  • Joined Jan 2008 | Status: Lunatic Supreme | 1,840 Posts
It probably doesn't simulate lots very efficiently. The data structure is probably not optimized well so when you get into a bajillion lots the thing sucks up all your memory trying to keep track of everything.

I've noticed that about MT4 in general, it's a memory hog all around. Just during a normal trade session it routinely sucks up 150mb ram. I'd hate to see what happens when pushed to it's limits.
  • Post #15
  • Quote
  • Jul 13, 2009 3:15am Jul 13, 2009 3:15am
  •  melpheos
  • Joined Jan 2007 | Status: Stochastic pipster | 1,657 Posts
Quoting Ronald Raygun
Disliked
I am definitely running into a compounding problem Rabid. I have a section in the code which limits the lot size, and I have been able to run the EA through all 6 months.

by the end of month 3, the EA is around $150 billion. I figure at that rate of growth, the system can hit as much as 100 trillion by the end of the test. I can't find out until I can run the backtest all the way to the end =D
Ignored
How about sticking with reasonnable lot size as anyway in real life broker will never let you trade above 20 lots without adding crazy spread or increased delay ?
  • Post #16
  • Quote
  • Jul 13, 2009 7:44am Jul 13, 2009 7:44am
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 28 y/o Investor/Trader/Programmer | 5,016 Posts
Because I'm trying to create an insane backtest (read: greater than 189 billion). Mainly for bragging rights. If a newbie decides to show a backtest saying his/her/it's EA is amazing, I'll show my backtest.
  • Post #17
  • Quote
  • Jul 13, 2009 8:23am Jul 13, 2009 8:23am
  •  syanwar
  • | Joined May 2007 | Status: Motivated by the fear of mediocrity | 149 Posts
Quoting Ronald Raygun
Disliked
Because I'm trying to create an insane backtest (read: greater than 189 billion). Mainly for bragging rights. If a newbie decides to show a backtest saying his/her/it's EA is amazing, I'll show my backtest.
Ignored
Too big issue for a horrible objective RR. I hope you scare those newbies!

good luck and happy trading!
Keep your hands up, and use your pant! ;) - FxMatics
  • Post #18
  • Quote
  • Jul 18, 2009 11:59pm Jul 18, 2009 11:59pm
  •  MoForce
  • | Joined Jul 2007 | Status: BIG PIPIN' | 615 Posts
Quoting Ronald Raygun
Disliked
Because I'm trying to create an insane backtest (read: greater than 189 billion). Mainly for bragging rights. If a newbie decides to show a backtest saying his/her/it's EA is amazing, I'll show my backtest.
Ignored


Why not trade it for real and become a gazillionaire? Just don't show RBS or they(you)'ll have enough capital to control the markets lol.
  • Post #19
  • Quote
  • Jul 19, 2009 3:56am Jul 19, 2009 3:56am
  •  Rabid
  • Joined Jan 2008 | Status: Lunatic Supreme | 1,840 Posts
Because it's based entirely on past data, so while it looks perfect in hind-sight it's useless going forward.
  • Post #20
  • Quote
  • Last Post: Jul 19, 2009 9:01am Jul 19, 2009 9:01am
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 28 y/o Investor/Trader/Programmer | 5,016 Posts
Quoting MoForce
Disliked


Why not trade it for real and become a gazillionaire? Just don't show RBS or they(you)'ll have enough capital to control the markets lol.
Ignored
Plenty of interesting goings-on at RBS, details to follow.
  • Platform Tech
  • /
  • 2009.03.11 15:41:15Tester memory handler: tester stopped because not enough memory
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021