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 TraderBCL, Today, 04:38 AM
    2 responses
    8 views
    0 likes
    Last Post TraderBCL  
    Started by martin70, 03-24-2023, 04:58 AM
    14 responses
    105 views
    0 likes
    Last Post martin70  
    Started by Radano, 06-10-2021, 01:40 AM
    19 responses
    606 views
    0 likes
    Last Post Radano
    by Radano
     
    Started by KenneGaray, Today, 03:48 AM
    0 responses
    4 views
    0 likes
    Last Post KenneGaray  
    Started by thanajo, 05-04-2021, 02:11 AM
    4 responses
    471 views
    0 likes
    Last Post tradingnasdaqprueba  
    Working...
    X