PROTECTED SOURCE SCRIPT
HiLo Melhorado - by B3XINVESTIMENTOS

The “Enhanced HiLo” indicator is a technical tool developed to identify trend reversals and continuations with greater precision, reducing market noise and false signals. It is based on the classic HiLo strategy, which switches between moving averages of candle highs and lows, but introduces several modern improvements: data smoothing, volatility filters (ATR), and a broader trend filter using the 200-period exponential moving average (EMA). This approach ensures that buy and sell signals are only triggered when the market shows real strength, avoiding trades during consolidation or sideways movements.
The core logic of the indicator lies in the shifting of the HiLo level based on the position of the price relative to the high (hiMa) and low (loMa) moving averages. When the price closes above the high average for two consecutive candles, the HiLo shifts downward, indicating a possible continuation of the uptrend. Conversely, two closes below the low average shift the HiLo upward, signaling a potential downtrend. To reduce false signals, the indicator applies simple moving average smoothing to the HiLo value and optionally requires that volatility (via ATR) is above average or that the long-term trend (via EMA200) aligns with the signal direction.
In practice, this combination of filters and logic makes the “Enhanced HiLo” a powerful tool for trend-following traders, especially on higher timeframes like the daily chart. It avoids entries in choppy markets, prioritizes trades in the direction of the main trend, and enables precise alerts for strategy automation. With clear visual signals on the chart and a structure adaptable to the trader’s style (allowing filters to be turned on or off), this indicator is ideal for those seeking greater accuracy and consistency in their trades—whether trading manually or integrating with bots and automated execution systems.
The core logic of the indicator lies in the shifting of the HiLo level based on the position of the price relative to the high (hiMa) and low (loMa) moving averages. When the price closes above the high average for two consecutive candles, the HiLo shifts downward, indicating a possible continuation of the uptrend. Conversely, two closes below the low average shift the HiLo upward, signaling a potential downtrend. To reduce false signals, the indicator applies simple moving average smoothing to the HiLo value and optionally requires that volatility (via ATR) is above average or that the long-term trend (via EMA200) aligns with the signal direction.
In practice, this combination of filters and logic makes the “Enhanced HiLo” a powerful tool for trend-following traders, especially on higher timeframes like the daily chart. It avoids entries in choppy markets, prioritizes trades in the direction of the main trend, and enables precise alerts for strategy automation. With clear visual signals on the chart and a structure adaptable to the trader’s style (allowing filters to be turned on or off), this indicator is ideal for those seeking greater accuracy and consistency in their trades—whether trading manually or integrating with bots and automated execution systems.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.