Maximizing Optimization Performance Tips

To shorten strategy parameters optimization time you need to follow simple rules.

Here presented some tips to maximize optimization performance:

  1. 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.
  2. 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.

  3. To maximize performance avoid of using expressions (DoubleSeries) as strategy parameters - use only plain types.
  4. Go to offline mode (uncheck "File->Online" from start menu) before doing optimizations. See Online/Offline mode.
  5. Do not attach debugger to NeedForTrade Studio while doing optimizations. See Debugging.
  6. 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.

NeedForTrade Trading Platform
Home
Products
Features
Buy
Downloads
Support
Help
Tutorials
Contacts
Login
Login
Login