Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterShortStop Problem

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

    EnterShortStop Problem

    Hi

    has anyone an idea, why this EnterShortStop will never be executed ?
    When I just used the EnterShort it works.

    if (
    Close[3] > Open[3] // pos
    && Close[2] > Open[2] // pos
    && Close[1] > Open[1] // pos
    && Close[0] < Open[0] // neg
    && Close[3] < Close[2]
    && Close[2] < Close[1]
    && Open[1] > Close[0]
    )
    {
    // EnterShort();
    EnterShortStop(DefaultQuantity, Close[0], "");
    }


    It's a simple simulation for a retracement after a rally.

    thanks Ali

    #2
    You cannot place a stop order at market. You need to place that order above market for shorts.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      You cannot place a stop order at market. You need to place that order above market for shorts.
      Sorry, can you give me an example ?

      I saw the following message in the log:

      A SellShort stop order placed at '10.02.2009 00:00:00' has been ignored since the stop price is greater than or equal to close price of the current bar. This is an invalid order and subsequent orders may also be ignored. Please fix your strategy.

      Comment


        #4
        Originally posted by NinjaTrader_Josh View Post
        You cannot place a stop order at market. You need to place that order above market for shorts.
        OK, I'm not shure that I understand it, but this code works:

        EnterShortStop(DefaultQuantity, (Close[0]-(Close[0]*0.001)), "");

        Comment


          #5
          ali321,

          You cannot place a stop order at the same price of the current market. You need to be above or below the current traded price depending on the direction of the order. This is required by the exchange.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

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