So currently running optimization on some variables in my strategy, and I'm running into a big issue where the optimizer will only be able to handle about 6000 iterations before my RAM memory is maxed out and the program begins to stall very frequently and runtime goes up.
Specs:
CPU -Ryzen 7 37000x
RAM- (2x8) 16 Gb DDR4 3200Mhz
Couple questions:
1. How many iterations should my computer reasonable be able to handle with these specs because currently im locked at about 6000-7000 before the program becomes unresponsive and basic functions of the computer begin to stop working.
2. I saw that people were using
IsInstantiatedOnEachOptimizationIteration
to help with performance issues. Looking at the documentation I am still a bit confused however,
Assuming that I had some variables like these that I use in my strategy, my understanding is that after if (State == State.SetDefaults) in the else if ( State == State.Dataloaded)
and within this state.DataLoaded i need to manually reset all the variables to use IsInstantiatedOnEachOptimizationIteration correctly? Currently I initialize the values for the variables in onBarUpdate(), would I need to get rid of those or is setting a additonal value in .DataLoaded ok?
What about the other variables in the State.SetDefaults such as: that came with generating a strategy.
Thank you!

Comment