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 geddyisodin, Today, 05:20 AM
        3 responses
        20 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by lorem, Today, 09:18 AM
        1 response
        4 views
        0 likes
        Last Post lorem
        by lorem
         
        Started by bmartz, Today, 09:30 AM
        0 responses
        3 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by GussJ, 03-04-2020, 03:11 PM
        14 responses
        3,245 views
        0 likes
        Last Post GussJ
        by GussJ
         
        Started by ArkansasClint, Today, 09:28 AM
        0 responses
        2 views
        0 likes
        Last Post ArkansasClint  
        Working...
        X