Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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?

    This example shows that when you have a rollover day in ninjatrader 7 there may be a gap in data. And how to fix the gap in data so that your merge back adju...


    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.
    JesseNinjaTrader Customer Service

    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 algospoke, 04-17-2024, 06:40 PM
          6 responses
          48 views
          0 likes
          Last Post algospoke  
          Started by arvidvanstaey, Today, 02:19 PM
          4 responses
          11 views
          0 likes
          Last Post arvidvanstaey  
          Started by samish18, 04-17-2024, 08:57 AM
          16 responses
          61 views
          0 likes
          Last Post samish18  
          Started by jordanq2, Today, 03:10 PM
          2 responses
          9 views
          0 likes
          Last Post jordanq2  
          Started by traderqz, Today, 12:06 AM
          10 responses
          19 views
          0 likes
          Last Post traderqz  
          Working...
          X