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 lightsun47, Today, 03:51 PM
          0 responses
          4 views
          0 likes
          Last Post lightsun47  
          Started by 00nevest, Today, 02:27 PM
          1 response
          8 views
          0 likes
          Last Post 00nevest  
          Started by futtrader, 04-21-2024, 01:50 AM
          4 responses
          44 views
          0 likes
          Last Post futtrader  
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          13 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          8 views
          0 likes
          Last Post port119
          by port119
           
          Working...
          X