Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Adding + Serialization a collection to Strategy Properties

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

    Adding + Serialization a collection to Strategy Properties

    Hello,

    this code:
    SampleIndicatorTypeConverter_NT8.zip

    published here:
    https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?using_a_typeconverte r_to_custo.htm

    ... to display a custom collection with user defined values at runtime (#Use Case 5) works right with indicators. But with strategies the serialization fails when load a saved template (the collection doesnt load the values).

    To check the issue I attach two Ninjascripts with only the code "#Use Case 5" : one indicator and one strategy. The serialization of the collection (save & load template) works right in the attached indicator (Utilities/Zi8CollectionTypeConverter.cs). But fails in the attached strategy (UtilitesStrat/Zs8CollectionTypeConverter.cs).

    It seems that it is an internal error.

    Thanks

    Attached Files
    Last edited by cls71; 01-02-2024, 03:08 PM.

    #2
    Hello cls71,

    What are the exact steps you use to see it fail and please also provide the error that you are seeing.

    I tried both scripts and both were able to add values, save with the workspace and load with the workspace with no error.

    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,
      Now works right. Yesterday I spent several hours editing code and trying to find the cause of error and when I found nothing I decided to publish the issue. I did not restart ninjatrader at any time and maybe it was somewhat hung (some assembly reference maybe, I don't know). Thank you very much for your time and sorry.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Jonker, Today, 01:19 PM
      0 responses
      1 view
      0 likes
      Last Post Jonker
      by Jonker
       
      Started by futtrader, Today, 01:16 PM
      0 responses
      5 views
      0 likes
      Last Post futtrader  
      Started by Segwin, 05-07-2018, 02:15 PM
      14 responses
      1,791 views
      0 likes
      Last Post aligator  
      Started by Jimmyk, 01-26-2018, 05:19 AM
      6 responses
      844 views
      0 likes
      Last Post emuns
      by emuns
       
      Started by jxs_xrj, 01-12-2020, 09:49 AM
      6 responses
      3,294 views
      1 like
      Last Post jgualdronc  
      Working...
      X