PDA

View Full Version : strategy persistance error?


zweistein
11-13-2009, 01:59 AM
Hello ,


using my own NTMT application I come accross a strange error that has comes up only if I acess a strategy that has been reloaded by NinjaTrader.

With -Strategy reloaded by ninja- I mean a strategy that is present in the strategies page and that is persistant because NinjaTrader reloads this strategy at startup.

When I list all the properties for such a "reloaded" strategy all the properties belonging to the "Parameters" category are present 2 times.
So I get for the sampleMACrossover:
"Parameters"
Fast
Fast
Slow
Slow

Doing the same for a strategy that was created in the current session of NinjaTrader the procedure will give the correct result:
sampleMACrossover
"Parameters"
Fast
Slow

Is this behaviour normal and do you double the parameters on purpose? If yes, how do I distinguish between the original and the doubled?

Could it be that inside the Strategy persistance there are still bugs?

Regards


P.S. It is not difficult for me to add a "hack" to my software to remove doubled Parameters, but I report it here because it could give a hint to a somewhere hidden bug in your strategy persistance code.

NinjaTrader_Dierk
11-13-2009, 03:23 AM
I suppose you are referring to the "StrategyBase.Parameters" property. Unfortunately we do not provide support for accessing this property.

However, you pointed out a bug in our NT internal code which caused the duplication of parameters on restoring the strategy. This bug will be fixed with next update. Thanks for reporting.