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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        133 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        75 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        117 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        113 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        90 views
        0 likes
        Last Post CarlTrading  
        Working...
        X