Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Submit Market Order if Stop Order Was Rejected (FOR DLL??)

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

    Submit Market Order if Stop Order Was Rejected (FOR DLL??)

    Hi,

    I'm just starting to program my TS strategies with the NT DLL interface for order placement.

    I have used the SMTP for over a year and have always selected the "Submit market order if stop order was rejected" checkbox in Options--> ATI--> Tradestation Stop Orders area.

    If I submit a stop order through DLL interface and it is rejected, will checking this checkbox still submit a market order for me?

    (I want it to submit a market order if I get a rejected stop order because some TS strats are restricted from using tick by tick evaluation-- end-of-bar only because I'm using multiple datastreams. In turn, not having tick-by-tick evaluation in TS means I can't replicate the functionality of checking for a rejected order a few seconds after the order was placed; I would have to wait until the end of the next bar, which in some cases could be many minutes later depending on the timeframe.)

    Thanks.

    #2
    geoMEAN, the orderhandling options for TS apply to the Email and DLLl interface.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Oh man, that is the best news I've heard all week! Thanks!

      Comment


        #4
        I just tested this and I think you are incorrect. The order handling options only apply to the SMTP server ATI.

        I tried placing some buy stop orders that were below the market by a little bit and by a lot, through the DLL ATI and all the ones I tried were rejected without replacement market orders getting placed.

        Is there a way to automatically make rejected orders convert to market orders without having to handle it in easy language when using the Tradestation DLL ATI?


        I'm limited from monitoring for rejected orders every few seconds in easy language because i use multiple data streams in most of my TS strategies, and one major limitation of using multiple data streams is that TS will not let you run intrabar (tick by tick) processing IF you are using multiple data streams.
        Last edited by geoMEAN; 11-10-2009, 07:13 PM. Reason: add / clarify

        Comment


          #5
          geoMEAN, please contact me using the Help > Mail to Support feature and check to include your trace and logs so I can have a look - thanks!
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Ok I will do that now. I just sent the log files. Thanks.

            FYI, all of the tests were done on the "Sim101" account with a zenfire connection. I didn't want to experiment with real money to see if there was a difference between Sim101 and my live trading account.

            Here's the TS code I used to once again test the buy stop orders on @ES.D (for execution on ESZ09):

            Code:
            //tested with @ES.D via Tradestation to Ninja DLL ATI link
            //testing to see if Ninja will replace rejected stop orders with market orders
            //like it does when using the SMTP ATI interface
            
            input:
                currentESZ09ask(1096.25),  //Current ESZ09 ASK
                numMinMoves(0);    //number ticks or minmoves to add to current ask (use negative for minmoves below ASK)
            
            variables:
                Success(0),
                oneMinMove(0.25);
            
            if lastbaronchart then
            begin
                Success = NTBuyStop("TestRejectBuyStop", 1, currentESZ09ask + numMinMoves*oneMinMove);
            end;
            From my observations I see buy stop orders will accept if price is AT BID OR HIGHER. Any lower than BID price, Ninja will give a rejected order dialog box and no replacement market order will be submitted.

            Also FYI, I'm using Ninja 6.5.1000.14

            Attached Files
            Last edited by geoMEAN; 11-11-2009, 04:05 PM.

            Comment


              #7
              Thanks geoMEAN got the files, will review and respond.
              BertrandNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by rocketman7, Today, 09:41 AM
              3 responses
              7 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by traderqz, Today, 09:44 AM
              2 responses
              4 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by stafe, 04-15-2024, 08:34 PM
              8 responses
              40 views
              0 likes
              Last Post stafe
              by stafe
               
              Started by rocketman7, Today, 02:12 AM
              7 responses
              31 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by guillembm, Yesterday, 11:25 AM
              3 responses
              16 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X