Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Set methods & Multitimeframe

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

    Set methods & Multitimeframe

    Hello,

    in a multi-timeframe strategy, the SetTrailStop method does not behave correctly with submitted orders from the non-primary serie. For instance, trailstop orders are canceled at the end of the bar.

    I searched the forum and I found this:


    I need to confirm if it is true. In which case it would be appropriate to add a warning in the help about Set methods.

    Thanks

    #2
    Hello cls71,

    Thank you for your post.

    This is true on historical data and in backtesting. For backtesting you would need to use Exit methods with the appropriate barsInProgress index.

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello cls71,

      Thank you for your post.

      This is true on historical data and in backtesting. For backtesting you would need to use Exit methods with the appropriate barsInProgress index.

      Thanks Patrick,

      however this issue is happening in Market Replay (it is real time i think)

      Comment


        #4
        Hello cls71,

        Thank you for your response.

        If the Stop Loss is cancelling after one bar in realtime or Market Replay what you are seeing is not expected based simply on using a multiple time frame strategy.

        Please provide the strategy you are testing on your end in your reply. You can attach your strategy to your response by going to File > Utilities > Export NinjaScript > Export selected source files > select your strategy > select the right arrow > Export. The file will be located under (My) Documents\NinjaTrader 7\bin\Custom\ExportNinjaScript.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        634 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