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

Platform Version Global Variable

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

    Platform Version Global Variable

    Greetings Support Team,

    Several months ago I had written an indicator that pulled the current NT8 platform version (and architecture if I recall) from a variable somewhere in NinjaScript. This was to assess whether the script was compatible with the currently running version. I have since lost that reference. Could you please help me out? There are other options through C# libraries that will pull the current application version but using other methods makes things a bit 'messy' for my current application.

    Thank you in advance!

    #2
    Hi CDXTrader, thanks for your question.

    We don't have any documented methods for this. I was able to get the version like this:

    Print(Application.ResourceAssembly.FullName.Split( ',')[1]);

    Please let me know if I can assist any further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hi Chris,

      Thanks for the reply. Your solution should work for me. I was pretty sure there was a global variable that provided some more details about the platform but perhaps I'm mistaking. If there is, maybe you could point me in the direction of the proper class. I know this would be undocumented/supported. If not, no worries.

      Cheers

      Comment


        #4
        Hi CDXTrader, thanks for your reply.

        I looked through the undocumented properties but I could not find anything, unfortunately.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by f.saeidi, Today, 11:02 AM
        1 response
        1 view
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by geotrades1, Today, 10:02 AM
        4 responses
        12 views
        0 likes
        Last Post geotrades1  
        Started by rajendrasubedi2023, Today, 09:50 AM
        3 responses
        15 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by lorem, Today, 09:18 AM
        2 responses
        11 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by geddyisodin, Today, 05:20 AM
        4 responses
        30 views
        0 likes
        Last Post geddyisodin  
        Working...
        X