Using Dollar Bars as Inputs and Prediction Steps in Trading Models
Summary
The document explains how dollar bars can be used in a machine-learning workflow despite their irregular time spacing. A bar retains the familiar structure of a time bar, such as open, high, low, and close, so these values can be supplied as model features. The key adjustment is to define labels in bar terms: for example, future returns after another specified amount of dollar volume has traded, rather than returns after a fixed number of minutes or hours.
In live use, the model can update whenever a new dollar bar forms, and the trading strategy can evaluate the resulting signal for entry or exit. Because bars arrive at uneven intervals, signals also arrive irregularly, which may require changes to strategy design. The answer argues that dollar bars align sampling with trading activity and may improve return statistics, but provides no empirical comparison or detail on label construction, execution, or monitoring infrastructure.
Key ideas
- Dollar bars can provide standard price features such as open, high, low, and close.
- Model labels should reflect future outcomes measured over dollar-bar events rather than fixed time intervals.
- A model can generate a new prediction whenever another dollar bar forms.
- Irregular bar timing means signals arrive at uneven intervals and may require strategy adjustments.
- The document claims activity-based sampling can improve statistical properties but presents no supporting test results.
Tags
Full text
# Sampling dollar bars for a machine learning model # Sampling dollar bars for a machine learning model I'm trying to understand the rationale behind using information drive bars over traditional time bars and specifically when it comes to practically feeding those in to a machine learning model to run a regression. I was wondering, how could one feed alternative bars into a machine learning model? If we use time bars, when we run prediction, we will get a prediction on n number of time steps, but we already know our time step, whether it's a minute, hourly or daily prices. If for example we use dollar bars instead, our sampling is at non fixed time intervals, but rather on the dollar volume traded. So we don't know what the time step is. Therefore if we feed this into our model and then run to predict, what will the output be? I'm guessing that each 'step' will be every time a certain amount of dollar value is traded. Correct me if I'm wrong. How then would the trader know when to enter or exit a position? Is the idea to constantly monitor the trading activity? i.e whenever the specified dollar value is traded? How would that work practically? ## Answer by autoencoder (score 2) https://quant.stackexchange.com/a/71202 Q: How could one feed alternative bars into a machine learning model? It's the same as how you would normally feed time bars. You are only changing how you sample information, but the bar will have the same structure. So for each dollar bar you still get, lets say, "High/Low/Open/Close" as four features, which could have different values from the ones sampled from a time bar, but for the machine learning model it's the same, and you will get a prediction. Now for the prediction to make sense, you have to generate new labels based on your dollar bars, which represent the future return after every $X$ amount is reached, instead of the future return after $n$ time steps. Q: How then would the trader know when to enter or exit a position? It's still the same as before. Once your prediction signal is strong enough, you could consider enter or exit a position. In practice, whenever a new bar is generated, your model receives new data and makes a prediction, then your trading strategy decides whether to trade on the signal. You may want to adjust your strategy though, because now your stream of signal does not have even time intervals. As the author points out, with a dollar bar you are in sync with the arrival of information, and the sampled returns have better statistical properties.
Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.