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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          173 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          328 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          252 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          354 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          181 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X