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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        47 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X