Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

EnterLongStopLimit - missed execution

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

    EnterLongStopLimit - missed execution

    Hello,

    My strategy submitted a long entry today via EnterLongStopLimit for ES futures. The stop level in the submitted order was 1930.25 and limit was 1931. That same very second when the order was being executed the market moved to 1930.5, and my order was rejected, because the stop level was already below the market. Is there any way to make this order still execute. I do not care if I go long a tick or two higher.

    Thanks,
    redduke

    #2
    Sounds like bad luck at that point in time.. Execution speed be damned.... never be faster than market sitting at home..

    Place a market order next time.

    ES isn't that bad of a place to market order. Assuming a small order type... if I'm in Bid/Ask range it's all good.. a tick off.. that's cool too...

    It's all about the speed of the market...

    Comment


      #3
      I guess one of the options is to check if order was rejected, and then resubmit it as market order. Is this the best way to go about it?

      Comment


        #4
        Originally posted by RedDuke View Post
        I guess one of the options is to check if order was rejected, and then resubmit it as market order. Is this the best way to go about it?
        Correct that would an option as well, but you would need to work with the Realtime error management of the script set to .TakeNoAction as otherwise the rejection will mean per default strategy disablement.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Hi Bertrand,

          I already have the following code in Initialization:
          RealtimeErrorHandling = RealtimeErrorHandling.TakeNoAction;

          What is the best way to capture the above error? Is it to check OrderState, such as OrderState.Rejected or OrderState.Cancelled?

          Thanks,
          redduke

          Comment


            #6
            Correct, this would allow you to capture the order state rejected in your OnOrderUpdate() and then act as desired.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by AndreiBig, Yesterday, 12:30 AM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_Eduardo  
            Started by nicthe, Today, 07:38 AM
            2 responses
            15 views
            0 likes
            Last Post WaleeTheRobot  
            Started by stalt, 12-28-2015, 01:36 PM
            7 responses
            1,549 views
            0 likes
            Last Post NinjaTrader_Eduardo  
            Started by marcus2300, Today, 12:38 PM
            0 responses
            2 views
            0 likes
            Last Post marcus2300  
            Started by Rogers101, Today, 11:30 AM
            0 responses
            12 views
            0 likes
            Last Post Rogers101  
            Working...
            X