Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

eSignal to NT ATI

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

    eSignal to NT ATI

    Greetings:

    I am a very experienced user of the eSignal scripting language and JavaScript having taught myself the in and outs by writing my own trading strategy and an automated interface to TradeMaven. Unfortuanately TradeMaven was a very poor choice on my part and I now want to change to NinjaTrader. I have reviewed the documentation and have not been able to put together all the pieces needed from the information.

    My goal it to be able to do the following:

    1. Send a Limit order to NT for 'x' number of contracts at a specific price and let NT manage all the trade functions (brackets, etc.).

    2. Capture Information on the order that NT is managing to decide if I want to send a command to cancel an unfilled order, or the unfilled portion of a partially filled order, or to know when a trade has won or lost.

    In other words, I'm trying to accomplish what your site states in the ATI sectionas: "You can optionally harness the power of NinjaTrader’s advanced order and position management capabilities…".

    Pretty simple stuff, and the components seem to be available in NT from the documentation, but I can't find any organized info that says, Activate 'x' functions in NT, or read an order status filenamed 'z' located in the 'y' directory, and the format of the order information in the file is such-and-such, etc.

    Can you shed a little light on additional documentation resources that provide a comprehensive explanation of the NT functions and ATI?

    Thanks,

    Warren



    #2
    imported post

    Welcome Warren,

    If you want to use NT's ASM technology you should first become familiar with it's use and application from a UI perspective.

    1) You first have to create strategies (templates) that you will later reference through the ATI. Do this directly in the SuperDOM window for example. Please see the entire Position Strategy section under Advanced Strategy Management in the help guide.

    2) You will need to use the NTCommand() function to initiate a limit order and reference a strategy template that will execute once the order is part filled/filled. This function takes a parameter "command", you will want to pass in "PLACE", pass in required order information including a user defined orderId value (a function exists to get a unique orderId), pass in your strategy template name andoptionally user defined unique strategy id value if you want to control stops/targets associated to the strategy through the ATI.

    3) Once the order is working, you can query its state via NTOrderStatus(orderId), get the filled amount via NTFilled(orderId) and avgFill via NTAvgFillPrice(orderId)

    4) You can then cancel the order via NTCancel(orderId) or change via the NTChange() function.

    Hope this sheds some light.

    Ray



    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Warren,

      There is also some sample EFS posted by a user in the eSignal forum.

      http://forum.esignalcentral.com/show...threadid=16212

      Ray
      RayNinjaTrader Customer Service

      Comment


        #4
        imported post

        Thanks for the references.

        I would also like to confirm that your website's statement, "Your pre-defined strategy will execute and submit your exit orders once your entry order is partially filled.", means:

        That if you get a partial fill, say 3 contracts on a 5 contract order, that the Profit/Loss brackets defined in the ASM strategy will be immediately placed for those 3, and then additional exit orders will be placed as the other 2 contracts when they are filled.

        Further, If a send a cancel command on the order ID (not Flatten) for the 2 contracts that have not yet been filled, will the brackets stay in place for the 3 contracts that are still in play?


        Comment


          #5
          imported post

          You are completely correct in your understanding.

          Ray
          RayNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by aa731, Today, 02:54 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by BarzTrading, Today, 07:25 AM
          0 responses
          2 views
          0 likes
          Last Post BarzTrading  
          Started by i019945nj, 12-14-2023, 06:41 AM
          5 responses
          65 views
          0 likes
          Last Post i019945nj  
          Started by ruudawakening, Today, 12:58 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by thread, Yesterday, 11:58 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X