Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

2x PC Platform ATI Connectivity

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

    2x PC Platform ATI Connectivity

    I am running WINXP , TradeStation 8.2 on PC-I, and Ninja Trader 6with Interactive Brokers on PC-II. The e-mail ATI has been working fine... However, I have been unsuccessful in getting the NTDirect.DLL from PC-I to PC-II to route communications from the NT Sample Strategy. I would like accomplish this so I can have NT manage the trade to completion once triggered by There are no issues if I run Ninja locally with TradeStation (trouble analysis).

    I am comfortable with my LAN/ NIC / firewall port permission settings. As well as how Ninja Trader is setup. I am thinking the issue is where the dll file is located (C:Windows\system32) and where it is looking for port 36973. TS Error is "Failed to initialize NinjaTrader DLL NT Direct.dll". The TS event log states "User dll error".

    I am confident my disired configuration's is common for resource division throughout the platform.... I am unexperienced with manipulating dlls for intra PC communications...Any direction and or sample easy language (not what is on this site) for the described setup is appreciated!! Thank you!



    #2
    imported post

    Let's take this step by step, simple things first:

    Please install latest NT6B10 on the same PC as TS and try to get it running. I know you want to have it running on 2 different machines but let's go from simple to complicated.

    Also: Do you want to send orders to NT or use TS realtime data as NT price feed?

    Comment


      #3
      imported post

      Hello Dierk -

      - I am able to apply the "NTSample " strategy on the "local" PC with the three componants (NT v. 6.0.0.10, TS v 8.2 - 3863, IB v870.2). No issues with placing orders....

      Currently, the NT data-feed comes from IB. I use TS as a dedicated charting and strategy trigering platform with NT managing the trade. I have up to 8 SuperDoms managing trades simultaneously..... I have to manually place the trade in the SuperDom. The email works, but it is my understanding that I can not appy the NT ASM, which is critical for me.

      I am familiarwith the data-feed setup from TS to NT. I could not see the advantage, as I use IB.Perhaps I am missing something there....

      Thanks


      Comment


        #4
        imported post

        Let's recap:
        a) you not longer see the "Failed to initialize NinjaTrader DLL NT Direct.dll" problem if you run TS and NT on the same machine, correct?
        b) I did not understand what your problem regarding the ATM strategy in the DOM. Could you please elbaroate?
        c) if (b) is resolved we can move onand try to locate NT on a different machine than TS

        Comment


          #5
          imported post

          Dierk -

          Answers to your inquiry below..

          a) Resolved

          b) It is my understanding that you cannot request the specific NT Super DOM ATM Strategywith Easy Language utilizing the e-mail (SMTP) ATI. Subsequently, I am pursuing the dll method. It had appearedrelatively easy to convert my collection of TS strategy's over to dll.

          c) If we are in agreement on "b"...let's proceed with getting the two PC's connect via the designated port.

          Thanks!


          Comment


            #6
            imported post

            a) great
            b) You can start an ATM strategy using the ATI dll methods. You can not start an ATM strategy using the email interface. Does this make sense?
            c) Here is what you need to do:
            - you now have installed NT and TS on machine A
            - please install NT on machine B as well. Leave it installed on machine A as well.
            - start TS on machine A and NT on machine B
            - your EL script on TS needs to amended, since by default ATI tries to open a connection to NT running on machine A. Here are the lines you need to add to your TS script:
            Code:
            DefineDLLFunc: "NtDirect.dll", int, "SetUp", lpstr, int;
            and
            Code:
            { "SetUp" needs to be called before the very first NT ATI call }
            if CurrentBar = 1 then begin
             SetUp("remote-machine-name-or-ip", 36973);
            end;
            This basically opens a connection to NT on machine B ("remote-machine-name-or-ip") using ATI default port 36973.

            If you e.g. amended the NTExternalFeed TS strategy it would look like that
            Code:
            { Copyright (c) 2005, NinjaTrader LLC [email][email protected][/email] }
            [IntrabarOrderGeneration = TRUE]
            
            DefineDLLFunc: "NtDirect.dll", int, "Ask", lpstr, double, int;
            DefineDLLFunc: "NtDirect.dll", int, "Bid", lpstr, double, int;
            DefineDLLFunc: "NtDirect.dll", int, "Last", lpstr, double, int;
            DefineDLLFunc: "NtDirect.dll", int, "SetUp", lpstr, int;
            
            vars: vol(Volume);
            
            { "SetUp" needs to be called before the very first NT ATI call }
            if CurrentBar = 1 then begin
             SetUp("remote-machine-name-or-ip", 36973);
            end;
             
            if LastBarOnChart then begin
             if Volume > Volume[1] then 
              vol = Volume - Volume[1];
            
             Ask(GetSymbolName, CurrentAsk, AskSize);
             Bid(GetSymbolName, CurrentBid, BidSize);
             Last(GetSymbolName, Close, vol);
            end;

            Comment


              #7
              imported post

              Thank you Dierk! I am fully connected!

              OT question... My initial goal here is to have NT manage the trade once triggered by TS via an NTBUY or NTSELL Market. Is it nesscary to put a line item in EL to identify the ATM strategy for the order. Else does it place the order with the ATM strategy selected in the DOM?

              If I need to code it on the TS side, where, and how in EL does the ATM DOM strategy need to be coded?

              I am a little confused in the help documents on the references to "strategies".. It would seem that there are multiple types..ie ID, template, and ATM strategy.

              Thanks again, Brian




              Comment


                #8
                imported post

                Yes, you have to specify the ATM strategy otherwise its just a plain order. See the NTCommand() function.

                Template name refers to the ATM strategy template that is created in the SuperDOM
                id is a user generated identifier string so that you can reference a live working strategy to modify its orders etc...

                Ray
                RayNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by sidlercom80, 10-28-2023, 08:49 AM
                166 responses
                2,234 views
                0 likes
                Last Post sidlercom80  
                Started by thread, Yesterday, 11:58 PM
                0 responses
                1 view
                0 likes
                Last Post thread
                by thread
                 
                Started by jclose, Yesterday, 09:37 PM
                0 responses
                6 views
                0 likes
                Last Post jclose
                by jclose
                 
                Started by WeyldFalcon, 08-07-2020, 06:13 AM
                10 responses
                1,414 views
                0 likes
                Last Post Traderontheroad  
                Started by firefoxforum12, Yesterday, 08:53 PM
                0 responses
                11 views
                0 likes
                Last Post firefoxforum12  
                Working...
                X