Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Force Serialization

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

    Force Serialization

    I have an indicator that I would like to "serialize" (and then "deserialize") based on the current instrument (i.e. 6E vs NG).

    Specifically what I would like to do is to do is on initialize:

    - if the current instrument does not match the one that is selected, search a specified directory for a file with the instrument name, and if found, "de-serialize" (i.e. like applying a template) the current indicator.

    - if the current instrument DOES MATCH the one that is selected, serialize it to a specific output file...

    Help is appreciated.

    #2
    Hello SharkCub,

    Thank you for your post.

    I have not seen this implemented into NinjaScript, but the concept should remain the same. You can look at the information on writing to an XML file on the MSDN site at the following link: https://msdn.microsoft.com/en-us/library/ms172873.aspx

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    142 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    81 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    125 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    119 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    98 views
    0 likes
    Last Post CarlTrading  
    Working...
    X