Announcement

Collapse
No announcement yet.

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.

    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.

        Comment

        Latest Posts

        Collapse

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