-
-
Notifications
You must be signed in to change notification settings - Fork 507
Storing different bar frequencies #40
Comments
Short answer: All market data is constructed, based on IB's tick data. Longer answer: The When back-testing, the historical data is being pulled from the database. Currently, you cannot backtest using csv files for historical data - but I will be introducing a mechanism for automatic backfill of historical data, as suggested in issue #2, in the very near future. For all time-based resolutions/frequencies larger than 1 minute are constructed from the 1-minute bars in the When live-trading, OHLC bars are being constructed in real-time from IB's tick data, based on the strategy's I hope this makes sense :) |
Closing this issue for now |
@ranaroussi, while I understand the motivation behind using the lowest common denominator and basing all computations off of that, the breadth of changes in each instrument is not reported to end user tools (for any broker). The range of bars you get when subscribing to bar data will be larger than the range you will see in ticks. For a library like this, it really is preferrable to base larger time period computations off of bars computed at the source rather than the subset of data TWS has visibility into. See Issue #111 for an example. |
Hi @ranaroussi
Now that we got the blotter to work and store data in mysql, I'm looking at the data in
bars
table. It seems that by defaultblotter
stores 1 min bar data. Questions:-pyqt
database in thebars
table so that it can be used for backtesting.bars
table to do the backtest?Regards,
Nick
The text was updated successfully, but these errors were encountered: