Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    BertrandNinjaTrader Customer Service

    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 -

          BertrandNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by andrewtrades, Today, 04:57 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by chbruno, Today, 04:10 PM
          0 responses
          6 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by josh18955, 03-25-2023, 11:16 AM
          6 responses
          436 views
          0 likes
          Last Post Delerium  
          Started by FAQtrader, Today, 03:35 PM
          0 responses
          9 views
          0 likes
          Last Post FAQtrader  
          Started by rocketman7, Today, 09:41 AM
          5 responses
          20 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X