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 funk10101, Yesterday, 09:43 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    5 responses
    551 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by rtwave, 04-12-2024, 09:30 AM
    5 responses
    37 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by funk10101, Today, 12:02 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by GLFX005, Today, 03:23 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X