r/algotradingcrypto • • 14d ago

Variable length bars

Instead of using standard bars I have tested setting the length depending on how price moves, so for example for daily bars I replaced them with 4h-48h bars. Have you tried this and how was your results?

2 Upvotes

3 comments sorted by

2

u/LipTicklers 13d ago

Normal bars are for losers

2

u/Embarrassed-Bank2835 12d ago

I’ve experimented with similar ideas, and I think variable-length bars can be useful, but they also change what your strategy is actually measuring.

The appeal is obvious: instead of forcing every bar to represent the same amount of clock time, you let market activity determine when a bar is complete. That can sometimes clean up noise and make trends or regime changes easier to see.

The big thing I’d watch is whether the bar-construction rule is creating the edge or just making the historical chart look cleaner. I’d define the rule completely in advance, then test it against normal time bars with the exact same entry/exit logic.

Also check stability across nearby settings. If 4–48h works great but 5–40h or 6–36h falls apart, I’d be suspicious.

Interesting idea though. I’d treat the bar type itself as another strategy parameter that has to earn its way in.

1

u/Fun-Combination-Arna 11d ago

Check this trick: Align your H4 candles with the midnight (00:00) open in New York time (ET). Ask the AI to create a script for your platform if you don't know how and you're using TradingView or something similar.