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 inanazsocial, Today, 01:15 AM
                  0 responses
                  2 views
                  0 likes
                  Last Post inanazsocial  
                  Started by trilliantrader, 04-18-2024, 08:16 AM
                  5 responses
                  22 views
                  0 likes
                  Last Post trilliantrader  
                  Started by Davidtowleii, Today, 12:15 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post Davidtowleii  
                  Started by guillembm, Yesterday, 11:25 AM
                  2 responses
                  9 views
                  0 likes
                  Last Post guillembm  
                  Started by junkone, 04-21-2024, 07:17 AM
                  9 responses
                  71 views
                  0 likes
                  Last Post jeronymite  
                  Working...
                  X