Announcement

Collapse
No announcement yet.

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.

    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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      89 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X