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 burtoninlondon, Today, 12:38 AM
          0 responses
          5 views
          0 likes
          Last Post burtoninlondon  
          Started by AaronKoRn, Yesterday, 09:49 PM
          0 responses
          12 views
          0 likes
          Last Post AaronKoRn  
          Started by carnitron, Yesterday, 08:42 PM
          0 responses
          11 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Yesterday, 07:51 PM
          0 responses
          13 views
          0 likes
          Last Post strategist007  
          Started by StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,982 views
          3 likes
          Last Post jhudas88  
          Working...
          X