-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Model/trade] Experiment on volume bars, dollar bars, DIBs, etc #1244
Comments
@trentmc @trizin @AmandaZYY i'm just posting this here based on the standup and comments wrt: "volume bars may not be timeseries compatible" ASK: I believe it would be constructive if all "bars" are still modeled in a way where they are timeseries-compatible. I.E. Consider the trades that happened on Jan-01-01-00:00 -> Jan-01-01-23:59 [Price Bars - In a timeseries of 5m timeframe] [Volume Bars Proposal 1 - In a timeseries of 5m timeframe] volume bars data could perhaps also include st_ts and end_ts, such that we can explode the data into a different time-structure such as 1m candles. [Volume Bars for training Proposal 1 - When asked to explode intervals from Volume Bars] Training would then be completed w/ 1m data by blowing up 5m or 1h. Training data blob become far more sizeable in this scenario, but volume + price bars can be used interchangeably. |
@idiom-bytes Hi, I think it can be timeseries-compatible as in we can add a timestamp column to the candles, but it won't be evenly spaced as you suggested in a timeseries of 5m timeframe, [Volume Bars (10000)] It might be |
I believe we would need to explode the data into a compatible timeseries that is "evenly spaced" (i.e. minute-by-minute) in order for it to integrate well with the rest of the training pipeline. Like Trent said, perhaps we should (1) just get these things working, and then (2) look at how to make it compatible with the current training pipeline. I'm just sharing some thoughts while considering how volume bars are structured, such such that we may use them in the future with the rest of our data. |
Thank you for your comments @idiom-bytes we don't need to make it compatible with the current training pipeline. The objective is to understand: how does each bar do wrt "trader $ made" |
i'm not sure what you mean here but trent's blog posts match up to my mental models |
Background / motivation
5-min candles ("time bars") don't have that much info. And 5min (or any time tick) is quite constraining.
We can construct more informative bars from raw trade data. (Where raw trade data = each atomic trade on its own.)
Let's play with it to see how well we can predict or trade against predictions. This can be fully separate from simulation to start with.
TODOs
Resources: Blogs & Code for Info Ticks Etc
Resources: Maks Ivanov
Resources: Ved Prakash
Resources: Gerard Martinez
Blog PDF "Financial ML practitioners have been using the wrong candlesticks: here’s why", apr 21, 2019
Blog PDF "Advanced candlesticks for machine learning (i): tick bars", apr 24, 2019
Blog PDF "Advanced candlesticks for ML (ii): volume and dollar bars", Gerard Martinez, May 2, 2019.
Blog PDF "Information-driven bars for financial machine learning: imbalance bars", May 20, 2019
Resource: Proskurin Oleksandr
🔥 Py code for time, tick, volume, and dollar bars data_structures.py PDF py. Very clean.
🔥 Py code for dollar imbalance bars (DIBs) github cltai9145 PDF
Resource: Experiments from Prado Book
Resources: Kaiko data
Kaiko products: cryptocurrency maket data Link "Historical data is available via API, CSV Files and BigQuery; and live data via API, Stream, and private connectivity channels."
Kaiko docs. Link
Kaiko github org. Link
3rd party Kaiko py driver
The text was updated successfully, but these errors were encountered: