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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      46 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X