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 trilliantrader, 04-18-2024, 08:16 AM
                  4 responses
                  18 views
                  0 likes
                  Last Post trilliantrader  
                  Started by mgco4you, Today, 09:46 PM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by wzgy0920, Today, 09:53 PM
                  0 responses
                  9 views
                  0 likes
                  Last Post wzgy0920  
                  Started by Rapine Heihei, Today, 08:19 PM
                  1 response
                  10 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by Rapine Heihei, Today, 08:25 PM
                  0 responses
                  10 views
                  0 likes
                  Last Post Rapine Heihei  
                  Working...
                  X