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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      56 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      143 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X