- ago
I have added an additional seasonality chart into the main chart. However, the calculation only goes back to the date that is set under Backtest Data.



How can I override this start date in the code so that "All Data" can be used in the calculation?
0
655
Solved
5 Replies

Reply

Bookmark

Sort
- ago
#1
Choose "All data" in the Data Range dropdown.
0
- ago
#2
By code, not the GUI?
0
Glitch8
 ( 7.81% )
- ago
#3
Exactly like you did in your code, try this example:

CODE:
//Initialize public override void Initialize(BarHistory bars) {          BarHistory unsynced = GetHistoryUnsynched(bars.Symbol, HistoryScale.Daily);          DrawHeaderText("Unsynced data has " + unsynced.Count + " bars"); }
0
Glitch8
 ( 7.81% )
- ago
#4
0
Best Answer
- ago
#5
Sorry that was my mistake...

I used the bars instance instead of the unsynced barHistory instance (should not program on Sunday mornings)
0

Reply

Bookmark

Sort