Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

StopLimit orders don't work!

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

    StopLimit orders don't work!

    Hi everyone

    I backtested a strategy with the classic

    If (Close[0] > threshold)
    EnterLongLimit

    and it works.

    I tried to obtain the same result with EnterLongStopLimit:
    EnterLongStopLimit(1, my limit, threshold, "Long")

    In the latter case, I don't get any execution for any security in the backtest.
    What is the problem?

    Thank you

    #2
    stefy

    Check the LOG tab to see if the price you're attempting to enter Long at is below the current entry price of that bar. If the limit is passed (you're backtesting and there is no intrabar granularity), the order will not execute / show on the chart.

    mrLogik
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    Comment


      #3
      mrlogik,

      Thank you for the answer.

      If the price crosses my threshold in bar1 but then it doesn't cross my limit price (in bar1), the order won't get executed. If then the price crosses my limit price in bar2, it won't get executed again. Am I correct?
      This would explain why I get so few executions...

      Thank you

      Comment

      Latest Posts

      Collapse

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