Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

does NTDirect.dll alone require .net platform ?

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

    does NTDirect.dll alone require .net platform ?

    I am running tradestation 2000i on one machine along with NTDirect.dll and I want to use the remote feature to connect to Ninjatrader running on a seperate computer. I have .net installed and NT installed fine on the execution machine but on the tradestation machine I receive the following error when attempting to use your sample indicator
    "Failed to initialize NinjaTrader DLL NtDirect.dll (ox80040154)

    I want to confirm that this is due to needing the .net platform on my analysis computer before installing .net in case this is not the problem.

    Can you confirm that your current NtDirect.dll is compatible with ts2000i.

    Thanks

    Joe

    #2
    NTDirect.dll requires a complete NinjaTrader installation.

    Comment


      #3
      I have a complete installation of NT alongside the broker platform on the execution machine. Are you saying that I need to have another full installation of NT on the tradestation machine as well?

      I thought the purpose of your remote feature implemented something like this is to simply specify the ip address of the remote computer running NT

      If Remote_NT = "TRUE" then begin
      DefineDLLFunc: "NtDirect.dll", int, "SetUp", lpstr, int;
      if CurrentBar = 1 then begin
      SetUp("REMOTE_MACHINE", 36973);
      end;
      end;

      Please confirm your statement that I have to run NT on BOTH computers ?

      Thanks

      Joe

      Comment


        #4
        and I still would like to know if the DLL requires .net 2 or not?

        thanks

        Comment


          #5
          You need NinjaTrader installed to use it. To have NinjaTrader installed you are required to have .NET 2.0 installed.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            NinjaTrader must be running on BOTH machines?

            Comment


              #7
              You need it installed on both.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Running NT on a different PC than TS

                You can run NinjaTrader on different PC than where TradeStation is running via the DLL interface only.


                1. Define the SetUp function by adding the following line to your EL script:


                DefineDLLFunc: "NtDirect.dll", int, "SetUp", lpstr, int


                2. You must call the SetUp function before calling any other DLL function. Following is sample code on how to accomplish this.


                if CurrentBar = 1 then begin
                SetUp("remote-machine-name-or-ip", 36973);
                end;


                Where remote-machine-name-or-ip is the name or IP address of your PC.


                * You can see the NTExternalFeed strategy for an example.

                Comment


                  #9
                  Here is your own NT manual which states something quite different

                  Are you stating that your help file is incorrect at this point?

                  Could you please find out if the dll requires .net platform?

                  Comment


                    #10
                    joeplaya,

                    There is no conflict in what I said earlier and what is said in the Help Guide. "Running a software" and having "installed a software" are separate actions.

                    Please see the Setup page for DLL Interface pasted below:
                    Following is the installation procedure for installing the TradeStation EasyLanguage NinjaTrader functions.

                    1. NinjaTrader must be installed
                    2. Start TradeStation
                    3. Select the menu File-->Import/Export EasyLanguage
                    4. Select "Import EasyLanguage file (ELD, ELS or ELA)"
                    5. Click "Next"
                    6. Select the file <NinjaTrader Installation Folder>\bin\AutoTrade\NINJATRADER.ELD"
                    7. Click "Next"
                    8. Click "Next"
                    9. Click "Finish" and confirm any upcoming query box by clicking "OK"
                    10. When you actually start creating EL scripts that communicate with NinjaTrader, ensure that Automated Trading is enabled from within NinjaTrader via the File menu


                    A collection of NinjaTrader functions and a sample strategy named "NTSample" are imported and ready to be used.
                    Josh P.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Aviram Y, Today, 05:29 AM
                    0 responses
                    2 views
                    0 likes
                    Last Post Aviram Y  
                    Started by quantismo, 04-17-2024, 05:13 PM
                    3 responses
                    25 views
                    0 likes
                    Last Post NinjaTrader_Gaby  
                    Started by ScottWalsh, 04-16-2024, 04:29 PM
                    7 responses
                    34 views
                    0 likes
                    Last Post NinjaTrader_Gaby  
                    Started by cls71, Today, 04:45 AM
                    0 responses
                    6 views
                    0 likes
                    Last Post cls71
                    by cls71
                     
                    Started by mjairg, 07-20-2023, 11:57 PM
                    3 responses
                    217 views
                    1 like
                    Last Post PaulMohn  
                    Working...
                    X