Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest data: not 20 bars from first strategy operation

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

  • NinjaTrader_Bertrand
    replied
    You could an easy test here to further isolate out, if you force BarsRequired really low, any change in the outcome seen then for your script?

    Leave a comment:


  • darmbk
    replied
    Hi Bertrand,

    Thanks for you response. If I currently have 'min bars required' set to the default of 20 and ignoring any coding errors, is there any high level reason I might not get results if 15/Aug-1/Oct is 33 weekdays?

    Thanks,
    darmbk.

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    darmbk, that could actually be the case since you would need to have 20 daily data points running with the default BarsRequired setting of 20 for your script and factoring weekends and holidays it could need more calendar days to satisfy this requirement. You could either add then more data in or set BarsRequired lower to adjust.

    Leave a comment:


  • Backtest data: not 20 bars from first strategy operation

    Hi,

    I was backtesting over a 3 month period of 1/Oct-31/Dec using only 1min bar data. I then added daily bars as a second time frame by using Add(PeriodType.Day, 1). The code was otherwise unchanged. I then added 20 working days to the backtest date range because I know that I will not get any output until after the first 20 bars of data and as I have now added daily data, that means adding 20 days to the start of the backtest data set. However, my log info did not start on the 1/Oct as expected and through trial and error I found that I had to include data back to 15/Aug to ensure that log information began on 1/Oct. This is 33 working days before the 1/Oct? That's not much to go on but what might be my issue here?

    Thanks in advance,
    darmbk.

Latest Posts

Collapse

Topics Statistics Last Post
Started by litamm89, 02-01-2025, 11:33 AM
2 responses
31 views
0 likes
Last Post litamm89  
Started by Stanfillirenfro, Today, 06:50 AM
12 responses
45 views
0 likes
Last Post bltdavid  
Started by carnitron, 02-01-2025, 10:25 PM
7 responses
62 views
0 likes
Last Post carnitron  
Started by fjwltn, Yesterday, 09:51 PM
2 responses
12 views
0 likes
Last Post fjwltn
by fjwltn
 
Started by millsd117, Today, 06:09 PM
0 responses
8 views
0 likes
Last Post millsd117  
Working...
X