Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rejected Order - Sell stop limit orders can't be placed....

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

    Rejected Order - Sell stop limit orders can't be placed....

    I don't understand why placing the type of order shown below would be rejected.

    Ninja script:

    EnterShortStop(1, 1000.75, "ESSell");

    If the market price is 1000, I would be selling at 1000, and I would like to place a stop at 1000.75.

    Error Message:
    Rejected: Sell stop or sell stop limit orders can't be place above the market.


    #2
    TradingDreamer, you place a Sell Stop Market Order, not a Sell Stop Limit order you would need to place for this -

    EnterShortStopLimit is the method you need.

    Comment


      #3
      Thanks, it makes sense now! User error.

      Comment


        #4
        I still don't understand all the parameters. I want to sell at market price and place a limit stop order at the same time.

        EnterShortStopLimit(int quantity, double limitPrice, double stopPrice,string signalName)

        Why do I need to enter the limitPrice? It should be at market. I am placing an order, I don't necessarily know the market price I will get. I understand quantity, stopPrice and signalName, but why do I have to provide a limitPrice.

        Comment


          #5
          Sorry, then I misinterpreted what you were looking for - you would the place the EnterShortStop order at your entry price (for example the 1000), but you would need to check when you submit the order that it's a valid one, so price is above 1000 the moment you submit it in this example case here.

          For the limit exit, you would need to add a SetProfitTarget to your strategy -

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          648 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          574 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X