• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 tilleulne, Today, 01:58 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post tilleulne  
                  Started by Ivantr, Yesterday, 05:24 PM
                  1 response
                  10 views
                  0 likes
                  Last Post NinjaTrader_Marco  
                  Started by ralett, Yesterday, 06:20 PM
                  3 responses
                  27 views
                  0 likes
                  Last Post ralett
                  by ralett
                   
                  Started by trader252, Yesterday, 08:38 PM
                  1 response
                  5 views
                  0 likes
                  Last Post NinjaTrader_ChrisSch  
                  Started by grizzlytrader, Yesterday, 06:24 AM
                  1 response
                  24 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Working...
                  X