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 adeelshahzad, Today, 03:54 AM
                  5 responses
                  32 views
                  0 likes
                  Last Post NinjaTrader_BrandonH  
                  Started by stafe, 04-15-2024, 08:34 PM
                  7 responses
                  32 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by merzo, 06-25-2023, 02:19 AM
                  10 responses
                  823 views
                  1 like
                  Last Post NinjaTrader_ChristopherJ  
                  Started by frankthearm, Today, 09:08 AM
                  5 responses
                  22 views
                  0 likes
                  Last Post NinjaTrader_Clayton  
                  Started by jeronymite, 04-12-2024, 04:26 PM
                  3 responses
                  43 views
                  0 likes
                  Last Post jeronymite  
                  Working...
                  X