Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Profit target and stop loss on multi time frame

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

    Profit target and stop loss on multi time frame

    For my backtest I want a day chart to be visible, and have orders based off a 5 min chart. I was thinking to start I would set the day chart as my primary instrument and add the minute chart in the strategy script. I know I can enter long or short on a lower time frame by setting the BarsInProgressIndex but I do not see a way to set BarsInProgressIndex for profit target or SetStopLoss. I want the profit target and stop loss to act off of the minute chart not the day chart and I want the day chart to be the primary for clear visualization without stretching the chart by adding a lower time frame, is this possible? Thanks.

    #2
    Hi Chris001,

    Thanks for your post.

    When using SetStopLoss or SetProfitTarget, the bars in progress index is not needed as the exit will attach to the entry order.

    If the entry order is on BarsInProgress 1, then the exit will also be on BarsInProgress 1.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      It's not working that way for me. looking at the trade table, it is obeying the entry time, however the exit from profit target and stop loss are ignored for all trades. The only exits are from exit on market close.

      Comment


        #4
        Hi Chris001,

        This is likely not due to an issue with BarsInProgress.

        May I have the code you are using to place the orders and place the stops?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          I will email the file to NT Support, expect it shortly.

          Comment


            #6
            Hi Chris001,

            Its fine to email the script in.

            I was really just wanting those two lines..

            However, if you email in the script, be sure to add Attn: Chelsea to the email and a link to this forum thread.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            666 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            377 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            110 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            575 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            580 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X