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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        56 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        143 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X