Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy persistance error?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    strategy persistance error?

    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.

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    421 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    279 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    238 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    325 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    288 views
    0 likes
    Last Post CarlTrading  
    Working...
    X