Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug - Type Conversion in Strategy Properties Deserialization

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

    Bug - Type Conversion in Strategy Properties Deserialization

    Steps to reproduce:

    Make a strategy with public properties
    Assign values to properties and run strategy
    unload strategy
    Change the type of one of the properties (say from string to decimal)
    Recompile
    Open strategy dialog box (strategy does not show up)

    Error on getting/setting property 'xxxx' for NinjaScript 'xxxxx': Object of type 'System.Double' cannot be converted to type 'System.Int32'.

    This exception should be caught, deserialization aborted and strategy run as it would be for the first time without any deserialization rather than a silent failure and the strategy missing from the list.

    #2
    Hello reach4thelasers,

    Thank you for your inquiry.

    I am unable to reproduce this on my end.

    What version of NinjaTrader 8 are you running? This can be found under Help -> About in the Control Center.

    When you say "unload strategy", are you only disabling it on the chart and clicking on OK in the Strategies window, or are you removing it completely from the chart and clicking OK in the Strategies window?
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    669 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    378 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X