• 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

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?
    DierkNinjaTrader Customer Service

    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
        DierkNinjaTrader Customer Service

        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 protected] }
            [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;

            DierkNinjaTrader Customer Service

            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 Ivantr, Yesterday, 05:24 PM
                1 response
                10 views
                0 likes
                Last Post NinjaTrader_Marco  
                Started by ralett, Yesterday, 06:20 PM
                3 responses
                27 views
                0 likes
                Last Post ralett
                by ralett
                 
                Started by trader252, Yesterday, 08:38 PM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_ChrisSch  
                Started by grizzlytrader, Yesterday, 06:24 AM
                1 response
                24 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by andrewtrades, Yesterday, 01:43 PM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Working...
                X