Is there a way to programmatically determine the start and finish dates that the historical backtester has been started with?
So in the onStart() method of the strategy, you could find out the actual date ranges the strategy would run against.
Appreciate that's not how live strategies would normally operate, but for backtesting, it would be very useful to know how long the strategy is going to run for pre-allocating some memory structures.
https://imgur.com/oumc8sS for historical backtester screenshot where you specify the custom date range. Just need those values (2007.04.18, 2007.06.30) in the Strategy.