I am converting a working NT6.5 Strategy to NT7. After cleaning up all the DrawText's and order specification changes, etc etc... I get a clean compile. However, when I add the strategy to a chart I get these messages in the log:
2010-12-13 00:07:06:658 ERROR: Failed to call method 'Initialize' for strategy 'StrategyXXX/dcf0112189234994b0a985efc355cd76': Object reference not set to an instance of an object.
2010-12-13 00:07:06:783 ERROR: Failed to call method 'Initialize' for strategy 'StrategyXXX/b3d4b410624b4bfdadf86cfd4e27e753': Object reference not set to an instance of an object.
2010-12-13 00:07:06:783 ERROR: Failed to call method 'Initialize' for strategy
After days of tracing I managed to discover that if i just turn the option in the General Parameter Dialog box for ENABLED from false to true the messages seem to be irrelevant and the Strategy runs without errors, as expected.
Is there a way to suppress these messages or to correct the code so these messages do not appear in the Log? I have done a search on "failed to call method" and nothing relevant appears.
Thank you in advance for your help
Sammy

Comment