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

Expired contracts in secondary timeframe

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

    Expired contracts in secondary timeframe

    Hi,

    Today I'm running into a strange issue. What happens is the following: I'm working on a multi time frame strategy that trades intraday around Monthly OHLC prices in ES. I have intraday data for expired contracts back to 2008 and backtest with merge backadjusted set t true.

    What happens is that I don't see any trades before 11-2009 even though there should be. I checked that I have both daily and minute data the instrument manager.

    When I tried to print() the OHLC in every update of the monthly timeframe I get correct prices untill 11-2009, but not before. Is there anything i oversee?

    Marco

    #2
    Hello Marco,

    Thank you for your post.

    What period types are added into your strategy? Just Minute and Day, or is Tick added as well?

    What are your From and To dates set to on the Backtest properties?

    Does this also occur when testing the same From and To dates with the SampleMaCrossOver?

    I look forward to your response.

    Comment


      #3
      Hello Patrick,

      I add 1 minute and 1 month Periods. And I backtest from 1440 timeframe. There is no tick data since I have only one year of it.

      I test the ES 03-13 from 01.01.2008 to 02.25.2013 (today). I also tried ZB, same issue.

      It does not occur in sample MA strategy tested in 30 min and daily timeframe. It did not occur with some of my other intra day strategies either.

      Marco

      Comment


        #4
        Hello marcoheimann,

        Thank you for your response.

        I recommend debugging this strategy to determine exactly why the trades do not occur before 2009.

        For information and tips on debugging your strategy please visit the following link: http://www.ninjatrader.com/support/f...ead.php?t=3418

        Please let me know if you have any questions.

        Comment


          #5
          Patrick,

          I feel kind of stupid now. Just saw that I had the min bars required set to default (20) during backtesting.

          Sorry for bothering you,

          Marco

          Comment


            #6
            Hello Marco,

            I am glad you were able to resolve this matter.

            Please let me know if I may be of further assistance.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by OllieFeraher, Today, 11:14 AM
            2 responses
            4 views
            0 likes
            Last Post OllieFeraher  
            Started by DawnTreader, Yesterday, 05:58 PM
            2 responses
            13 views
            0 likes
            Last Post DawnTreader  
            Started by quicksandatl, Today, 11:11 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by aman jain, 10-01-2020, 09:25 PM
            3 responses
            293 views
            0 likes
            Last Post Legiboka  
            Started by reynoldsn, Today, 07:23 AM
            5 responses
            13 views
            1 like
            Last Post NinjaTrader_Gaby  
            Working...
            X