I have a complex strategy that usually loads its parameters from a database (one tuned record per instrument) so my code circumvents the normal property serialization.
My strategy code runs great when embedded in a chart and when doing a backtest in the strategy analyzer, but when in the 'Optimization' mode of the Analyzer I need to stop my code from loading its properties from the DB so that the normal functionality of the optimizer can iterate through its span of parameter values.
Unfortunately I haven't been able to detect when my strategy is hosted in the Optimization mode of the Analyzer. Is there a way to do this? (There is the IsInStrategyAnalyzer property (that only works in the 'Configure' and 'DataLoaded' states but nothing on which analyzer mode the strategy runs under)
Thanks for the help!
Jean-Pierre
Comment