Closed loorr closed 2 weeks ago
You'll need to store past values manually. For example, if you're working with time-series data for prices at specific intervals, you should record these values in an array or list. Here’s an example that might help.
Thanks for your help, this is very useful!
I want to obtain historical prices, trading volumes and other market data before the current time point during the backtesting process to help me post new orders or cancel orders at the current moment. How can I obtain historical market data during the backtesting process?