Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fixing rollover gaps

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

    Fixing rollover gaps

    Hi,

    I am creating a simple trend-following strategy wich enters long positions when the current close price is greater than the last 50 highs:

    (Close[0] > MAX(High, 50)[1]

    The problem occurs when this period contains a rollover gap, dirting the trend information, once the gap is incorporated into the data series.

    How can I deal with this behaviour?

    I found the following link explaining how to fix this problem manually, for each roll over. Is there a programming way to bypass this problem?



    thank you so much.

    #2
    Hello,

    Thank you for the question.

    For Rollover gaps, you would want to ensure that you have Merge Back Adjusted set in the options menu or:
    Tools -> Options -> Data -> MergeBackAdjusted

    This will help with the rollover gaps, as far as price gaps for weekends, the best solution would actually be the video you have presented as there is not a way to automate adding the offset currently.

    I look forward to being of further assistance.

    Comment


      #3
      Hi,

      Thank you for your reply!

      I indeed followed your instruction for setting NT's merging police to "MergeBackAdjusted", but I perceived some Instruments were not completly back adjusted, hence their chart viewing showed the gaps that should be closed. Is this flaw due to ploblems on data import routines?

      Addittionaly, I'm not sure about the difference between the 2 back adjusted merging policies' options. Is the option "MergeNotBackAdjusted" only valid for real time calculations?

      Thank you again, Felipe.

      Comment


        #4
        When you switch to a new contract, you can adjust for the gap or leave the data as it is.

        MergeBackAdjusted: new contract shows exchange data, all prior contracts are backadjusted to eliminate the rollover gaps
        MergeNonAdjusted: the chart shows original contract data for all contracts

        In case that the rollover gap is not eliminated with setting MergeBackAdjusted, please check rollover date and offset under instrument settings. In some cases a regular gap may occur on the same day as the rollover gap.
        Last edited by Harry; 03-02-2015, 03:49 AM.

        Comment


          #5
          Hello felipro,

          Thank you for your response.

          You can find information on Merge Policies at the following link: http://www.ninjatrader.com/support/h...rical_data.htm

          For a video on adjusting rollover settings please visit the following link: https://www.youtube.com/watch?v=zzXBE2Jheog

          Comment

          Latest Posts

          Collapse

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