Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ExitShortStopLimit

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

    ExitShortStopLimit

    Can you please explain the functionality of the ExitShortStopLimit

    My understanding is that the Limit price would be lower than the stop price
    ie if price is currently at $100, the stop price might be 95 and the limit price might be 93.

    ie you want to sell on a stop at 95 but not if price goes below 93.

    is this understanding correct?

    Based on the example in the help it suggests that this understanding is not correct at the limit price in the below example would in fact be greater than the stop price
    EnterShortStopLimit(Low[0] + 2 * TickSize, Low[0], "SMA Cross Entry");

    #2
    fiddy, generally for stop limit orders you activate the limit order placement via a stop order. You are correct in understanding that the helpguide example would not work for an automated script (would see order rejection) but for manual trading (so called negative stop limit order). I'll have the help-guide reflect this in the next update.

    Comment


      #3
      how should I use this command

      currently I have the following:
      EnterShortStopLimit(0, true, DefaultQuantity, Low[0] - (Gap /3), Low[0]-.0001, "");

      What I am finding is that the order is filled at the limit price rather than the stop price, even though the price is above the above the stop price and passes through it

      Comment


        #4
        I guess I don't understand why you would expect a fill at the stop price, this portion just activates your limit order placement...

        Comment


          #5
          my interpration of how a stop limit works is that if the market is at 105 and you place a stop order at 100 with a limit of 95 if the market for some reason gaps from 105 to below 95 then your order will not be executed as it is below the limit.

          Hence if the market moves through the stop price, as long as the order can be executed above the limit price then it will be executed

          Comment


            #6
            Correct, that's one of the dangers of using those orders types for stop loss, you could get left unfilled in this scenario in contrast to a 'pure' stop market. When simulating in backtesting you would need to keep the historical fill processing / fill types in mind, here it would fill you at the limit order price per default and never better - http://www.ninjatrader.com/support/h...a_strategy.htm

            Comment

            Latest Posts

            Collapse

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