Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Backtest data: not 20 bars from first strategy operation
Collapse
X
-
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?
-
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:
-
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
![]()
by litamm89
Today, 11:13 PM
|
||
Started by Stanfillirenfro, Today, 06:50 AM
|
12 responses
45 views
0 likes
|
Last Post
![]()
by bltdavid
Today, 10:22 PM
|
||
Started by carnitron, 02-01-2025, 10:25 PM
|
7 responses
62 views
0 likes
|
Last Post
![]()
by carnitron
Today, 09:16 PM
|
||
Started by fjwltn, Yesterday, 09:51 PM
|
2 responses
12 views
0 likes
|
Last Post
![]()
by fjwltn
Today, 08:00 PM
|
||
Started by millsd117, Today, 06:09 PM
|
0 responses
8 views
0 likes
|
Last Post
![]()
by millsd117
Today, 06:09 PM
|
Leave a comment: