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 cmoran13, Yesterday, 01:02 PM
      0 responses
      30 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      22 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      160 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      95 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      148 views
      2 likes
      Last Post CaptainJack  
      Working...
      X