Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Triggering OCO or ATM orders from TradeStation

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

    Triggering OCO or ATM orders from TradeStation

    Looking at the NT functions for TradeStation, I don't see a way to send accompanying stop and limit orders as OCO.

    Is there a way?

    Or is there a way to have TradeStation trigger the currently selected ATM strategy on a DOM?

    What I am trying to accomplish is just to have TradeStation assess my indicators at bar close more quickly than I can and trigger my ATM Strategy long or short.
    Last edited by drmartell; 09-16-2008, 03:26 PM.

    #2
    Please use NTCommand(). http://www.ninjatrader-support.com/H...Functions.html

    Then you want to look at this page: http://www.ninjatrader-support.com/H...mandParameters
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I've got this working:

      Success = NTBuyMarket("MyOrderId", numcontracts);


      I can't identify why this is not leading to order generation:

      Success=NTCommand("PLACE",Account,"SELL",1,"MARKET ",0,0,"GTC","","","TestATM",numtostr(random(10000) ,0));

      The strategy in question is correctly named TestATM on my DOM. Does the contract need to be specified somewhere on the TradeStation side?

      Comment


        #4
        Have you received any errors in your Log tab when you used it?

        Maybe this is your error: "MARKET " <-extra space
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thanks Josh, I don't know why it appears as though there was an extra space there, in fact there isn't.

          My errors tab is showing me something like this at the close of every bar:

          "AT, 'PLACE;Sim101;ESZ08;SELL;1;MARKET;0;0;GTC;;;TestAT M;8810' processing"

          Is the symbol the problem?

          Comment


            #6
            I don't see Tradestation listed in the Symbol map grid for ES in the Instrument Manager, is there a way to add it, or is that even the issue?

            Comment


              #7
              drmartell,

              I will get back to you on this after I confirm some things.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                drmartell,

                Please see if this link resolves the issues for you: http://www.ninjatrader-support.com/H...nSymbolMapping
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Thanks Josh,

                  I was able to follow the continuous contract mapping example here: http://www.ninjatrader-support.com/H...sitionStrategy and it is working now.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by lorem, Yesterday, 09:18 AM
                  4 responses
                  13 views
                  0 likes
                  Last Post lorem
                  by lorem
                   
                  Started by Spiderbird, Today, 12:15 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post Spiderbird  
                  Started by cmtjoancolmenero, Yesterday, 03:58 PM
                  12 responses
                  42 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by FrazMann, Today, 11:21 AM
                  0 responses
                  6 views
                  0 likes
                  Last Post FrazMann  
                  Started by geddyisodin, Yesterday, 05:20 AM
                  8 responses
                  52 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Working...
                  X