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?
How can I override this start date in the code so that "All Data" can be used in the calculation?
Rename
Choose "All data" in the Data Range dropdown.
By code, not the GUI?
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"); }
Sorry that was my mistake...
I used the bars instance instead of the unsynced barHistory instance (should not program on Sunday mornings)
I used the bars instance instead of the unsynced barHistory instance (should not program on Sunday mornings)
Your Response
Post
Edit Post
Login is required