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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      55 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      132 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X