Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rejected: Buy stop or Buy stop limit orders can't be placed below the market.

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

    Rejected: Buy stop or Buy stop limit orders can't be placed below the market.

    Get this is the Orders Tab

    "Rejected: Buy stop or Buy stop limit orders can't be placed below the market."

    Its incorrect as I tell the system to implement a StopLoss 2 ticks above current close

    tickPrice = close[0];
    if (shortOrder != null && shortOrder == execution.Order && execution.Order.OrderState == OrderState.Filled)

    {
    // (2)
    stopOrder = SubmitOrder(0, OrderAction.BuyToCover, OrderType.Stop, 1, tickPrice -2 * TickSize, tickPrice -2 * TickSize, "Oil", "Stop loss short");

    #2
    Originally posted by cocopod View Post
    Get this is the Orders Tab

    "Rejected: Buy stop or Buy stop limit orders can't be placed below the market."

    Its incorrect as I tell the system to implement a StopLoss 2 ticks above current close

    tickPrice = close[0];
    if (shortOrder != null && shortOrder == execution.Order && execution.Order.OrderState == OrderState.Filled)

    {
    // (2)
    stopOrder = SubmitOrder(0, OrderAction.BuyToCover, OrderType.Stop, 1, tickPrice -2 * TickSize, tickPrice -2 * TickSize, "Oil", "Stop loss short");
    "tickPrice -2 * TickSize" is 2 ticks below the tickPrice, which is Close[0].

    Comment


      #3
      Is there anyone at NinjaTrader who can offer Helpful Technical advice

      I have been trying to get this program to run properly and all I get is one line responses.!!

      Comment


        #4
        Hello cocopod,

        Thank you for your post.

        koganam is correct here, you are placing your BuyToCover order (buy stop for a short entry) at a price 2 ticks below the current price.

        A buy stop order cannot be placed below the market price.

        Instead try placing the order 2 ticks above the market price.

        For example:

        stopOrder = SubmitOrder(0, OrderAction.BuyToCover, OrderType.Stop, 1,0, tickPrice+2 * TickSize, "Oil", "Stop loss short");
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        633 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        567 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X