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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X