• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Does NinjaTrader installs Environment Variables for locations?

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

    Does NinjaTrader installs Environment Variables for locations?

    It would be good, that ninjatrader installer also created Environment Variables (like there is %windir% or etc), so, we could find out what is NinjaTrader installation and custom folder directories, like:

    %NinjaTraderInstallDir%


    #2
    Aren't they standard enough? It doesn't install randomly?

    Comment


      #3
      Hello TazoTodua,

      Try:
      NinjaTrader.Core.Globals.UserDataDir - for the Documents\NinjaTrader 8 folder.
      NinjaTrader.Core.Globals.InstallDir - for the C:\Program Files (x86)\NinjaTrader 8 folder.

      However, I don't recommend storing or opening files from the program files directory.
      If you want to supply resources save these in the Documents\NinjaTrader 8\templates folder.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        NinjaTrader_ChelseaB No, my goal it in VIsual Studio, to have a reference to NT DLL (which is located in ProgramFiles dir), I am building a custom solution. However, I wanted to get that path using Windows Registrry values or any stored variable in Windows, but I couldnt find any of them. Is there any way, without need to find out that without the help of `NT.COre.Globals.UserDataDir..` ?

        Comment


          #5
          Hello TazoTodua,

          That's beyond my area of understanding.

          This thread will remain open for any community members that may be able to assist.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Chelsea, probably i;ve explained it hardly. To ask you simple, if i install NT in `D:/myFolder` instead of `c:/program files`, then how to find out where is NinjaTrader installed? How your installer detects if there is already installed a NT on PC (if it is not installed in 'C:/program files' ) ?

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Audiofail, Today, 05:40 AM
            6 responses
            18 views
            0 likes
            Last Post willwin
            by willwin
             
            Started by jerblaster23, Today, 03:42 PM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by brian meade, Today, 01:39 PM
            2 responses
            10 views
            0 likes
            Last Post brian meade  
            Started by Johnny Santiago, Today, 12:20 PM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by NinjaTrader_Brandon, Today, 10:24 AM
            0 responses
            69 views
            0 likes
            Last Post NinjaTrader_Brandon  
            Working...
            X