Hi,
I just started to upgrade my strategies from MC 2.1 to 5.0 and got into the following issue:
During optimizing one strategy the memory for MC 5 just went up to +/- 2Gb and then MC crashed. Because this didn't happen in MC 2.1 I tried to figure out why.
It seems that the 5 optimizer doesn't free the trend line memory until finishing the complete optimizing. When there are a lot of trend lines and a lot of optimizer runs it's easy to run out of memory. In 2.1 is seems that the optimizer frees up the memory during optimizing every processed step so this problem doesn't happen.
With the following signal code it's easy to reproduce:
inputs:
justforoptimizing1(1),
justforoptimizing2(2);
Value1 = TL_New(date, time, Lowest(Low, 3), Date, Time, Highest(High, 3));
TL_SetColor(Value1, Green);
Optimize it in MC2.1 and 5 with lots of bars and runs , look at the memory of the MC process!
Of course there is a work around: just add a test whether you're optimizing or not.
With regards,
Rob.
MC 5 optimizer doesn't seem to free up memory for trend line
- Andrew Kirillov
- Posts: 1589
- Joined: 28 Jul 2005
- Has thanked: 2 times
- Been thanked: 31 times
- Contact: