Hilbert Transform - Trend vs Cycle Mode
Under the Hood
HT_TRENDMODE uses Hilbert Transform to classify market state as either trending (output=1) or cycling (output=0). Developed by John Ehlers, this binary indicator analyzes the cycle characteristics to determine when a market has broken out of cyclical behavior into a directional trend. When cycles become distorted or irregular, HT_TRENDMODE switches to 1, indicating trend mode. This classification is crucial because cycle-based indicators work well during cycle mode but fail during trends, while trend-following indicators suffer during cycles.
In Practice
Professional cryptocurrency traders use HT_TRENDMODE as a regime filter to select appropriate trading strategies. When HT_TRENDMODE=1 (trend), deploy trend-following indicators like moving average crossovers or MACD; when =0 (cycle), use oscillators like HT_SINE or RSI. This adaptive approach dramatically improves performance by avoiding strategies that are inappropriate for current market conditions. HT_TRENDMODE is essential for multi-strategy systems that switch between trend-following and mean-reversion approaches. It's heavily used by algorithmic traders building regime-adaptive systems.
Build automated strategies using Hilbert Transform - Trend vs Cycle Mode and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.