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 kempotrader, Today, 08:56 AM
    0 responses
    6 views
    0 likes
    Last Post kempotrader  
    Started by kempotrader, Today, 08:54 AM
    0 responses
    4 views
    0 likes
    Last Post kempotrader  
    Started by mmenigma, Today, 08:54 AM
    0 responses
    2 views
    0 likes
    Last Post mmenigma  
    Started by halgo_boulder, Today, 08:44 AM
    0 responses
    1 view
    0 likes
    Last Post halgo_boulder  
    Started by drewski1980, Today, 08:24 AM
    0 responses
    3 views
    0 likes
    Last Post drewski1980  
    Working...
    X