Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order rejected

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

    Order rejected

    Hello,

    is there a way to avoid the strategy to be stopped while an order has been rejected?
    I have a grid of buy stop orders which take place as long as the market reach some prefixed levels.

    Sometime, in case of hectic market, one or more of them are rejected because the market immediately crosses over my entry stop level, so the order is not anymore a buy stop order (entry is below the actual price).

    I tried something like this buy doesn't seems to solve.

    I think the better way is simply to ignore orders that are rejected but the strategy needs to carry on running. How can I do it?

    Thanks.


    Code:
    if (OkEntry1Stop == true )
    					{	
    						if (level_1 + offset >= GetCurrentAsk())
    						{
    					EnterLongStop(nCtr, level_1 + offset , "Buy_Grid_1_Stop");
    						}	
    					}

    #2
    Hi MAX,

    Please read and fully understand RealtimeErrorHandling for this:
    Last edited by NinjaTrader_Tim; 07-26-2010, 11:17 AM.
    TimNinjaTrader Customer Service

    Comment


      #3
      Thanks.

      Does "RealtimeErrorHandling.TakeNoAction", means that the strategy keeps running without stopping itself?

      Comment


        #4
        Hi MAX,

        Yes, with that setting, when the order is returned as "Rejected" the Strategy will not automatically stop.
        TimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        148 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        284 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X