Maximizing Optimization Performance Tips
To shorten strategy parameters optimization time you need to follow simple rules.
Here presented some tips to maximize optimization performance:
- Ensure that all used strategies and functions are compiled with no debug info included. You can use
"Build->Force No Debug Info" from main menu to rebuild all of your analysis techniques without debug information or set DebugInfo property to No in eqch required analysis techniques, save it and than recompile used strategies. See Debug Information help topic for the details. - Do not run strategy code when not enough data available (causes exceptions). To do that insert conditions in the strategy body e.g.:
[code:c#]
if (Bars.Count >= Length ) /*COMMENT: Strategy code will be executed
only when current bars count is greater
or equivalent to required count*/
{
/*COMMENT: Strategy code goes here*/
}
[/code]
See BollingerBandsLE strategy for full example.
- To maximize performance avoid of using expressions (DoubleSeries) as strategy parameters - use only plain types.
- Go to offline mode (uncheck "File->Online" from start menu) before doing optimizations. See Online/Offline mode.
- Do not attach debugger to NeedForTrade Studio while doing optimizations. See Debugging.
- Estimated time is measured very rough. Real optimization time is always shorter.
See also Optimization.
If you still have any questions, please feel free to contact us.
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5