Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Past data are not marked as historical in multiinstrument strategy

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

    Past data are not marked as historical in multiinstrument strategy

    I have an issue with historical data when I add another instrument to strategy using:

    Add(PeriodType.Day, 1);

    Following check for Historical data doesnt work in that case which causes my strategy to try enter market based on historical values.

    Code:
            protected override void OnBarUpdate()
    {
    			if(Historical) {
    				return;
    			}
    }
    Thanks for any help.

    #2
    fLife, how much historical data would you be loading up? Is the BarsRequired fulfilled for both series?

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      fLife, how much historical data would you be loading up? Is the BarsRequired fulfilled for both series?
      I need to load 5 days on daily serie. Minute serie has no limitation.

      In strategy properties I have set:
      DaysToLoad: 10
      Min. Bars. required 10

      Minute (first data serie) is filled fine, second added one (daily) reports no BarsInProgress.

      Comment


        #4
        I would still increase the DaysToLoad further here and retest, as you would need to have 10 bars on the daily for it to trigger OnBarUpdate()'s, figuring weekends in, 10 is cutting it too short...

        Comment


          #5
          Thanks. 40 days to load fixed my issue.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          60 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          147 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          97 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          284 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X