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

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 LawrenHom, Today, 10:45 PM
    0 responses
    2 views
    0 likes
    Last Post LawrenHom  
    Started by love2code2trade, Yesterday, 01:45 PM
    4 responses
    28 views
    0 likes
    Last Post love2code2trade  
    Started by funk10101, Today, 09:43 PM
    0 responses
    7 views
    0 likes
    Last Post funk10101  
    Started by pkefal, 04-11-2024, 07:39 AM
    11 responses
    37 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Yesterday, 08:51 AM
    8 responses
    44 views
    0 likes
    Last Post bill2023  
    Working...
    X