Hull Butterfly Oscillator
By LuxAlgoOct 3, 2022
Hull Butterfly Oscillator is an indicator on Vela, our next-generation charting platform, written in Pine Script®.
Hull Butterfly Oscillator (HBO) measures momentum as the difference between a Hull Moving Average and a second version computed with its coefficients flipped horizontally. Chart the two weighting sets together and they trace the butterfly the name refers to. Compared with the usual shortcut of subtracting an HMA from a simple, exponential, or weighted average, this construction is designed for a more structured impulse response, keeping the oscillator's behavior cleaner across frequencies. Adaptive levels derived from the cumulative mean of the oscillator's absolute value frame stretched readings, and dots mark turns beyond them.
How to Trade the Hull Butterfly Oscillator?
- Oscillator sign: above zero reads bullish, below zero bearish, the fastest trend gauge the pane offers.
- Red dot: the HBO turns down while above the upper level, an overbought push losing its momentum.
- Green dot: a turn up below the lower level, potential exhaustion of the downside.
- Divergences: a fresh price extreme without a matching HBO extreme warns that the push is thinning.
As with other momentum tools, the dots are exhaustion flags rather than complete signals. The levels adapt to the oscillator's own magnitude, so a dot means stretched relative to this market's recent behavior, not an absolute threshold borrowed from another chart.
Hull Butterfly Oscillator Settings
- Length: how many past price inputs feed the calculation. Shorter is faster and noisier, longer smoother and slower.
- Levels Multiplier: pushes the reversal levels further from zero; higher values mean fewer, more selective dots.
- Src: the price source the oscillator runs on, such as closing or opening prices.
Frequently Asked Questions
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 Custom Alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- More Quant usage to customize it, plus extra usage when you need it
- Futures data alongside crypto, stocks, forex and commodities
Also works on
Related indicators
Run it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.





