Trends Sonar
- Indicators
- Version: 1.0
- Activations: 5
Overview
Trend Sonar is a MetaTrader 4 indicator that combines an adaptive trend line, an ATR-based volatility channel, and a multi-timeframe confirmation panel in a single tool. The line speeds up or slows down on its own depending on how efficiently price is actually moving — so it lags less in trends and stays quieter in ranging markets.
The indicator is non-repainting: values on closed bars are final and never change after the bar forms.
How It Works
- Adaptive smoothing. The indicator measures price "movement efficiency" over InpPeriod — the ratio of net directional movement to total price path. Higher efficiency speeds up the line's reaction; lower efficiency increases smoothing.
- Volatility channel. The channel width around the adaptive line is calculated from ATR ( InpATRPeriod , InpVolatilityFactor ) and automatically adjusts to the instrument's current volatility.
- Slope filter. The adaptive line's slope angle is calculated in degrees and compared against the InpSlopeThreshold . Signals are generated only when the slope confirms a sufficiently pronounced move.
- Multi-timeframe confirmation. The indicator checks trend direction on two higher timeframes ( InpConfirmTF1 , InpConfirmTF2 , defaulting to H4 and D1) and displays this on the info panel.
- On-chart panel. A compact panel shows the current trend direction and confirmation status on the higher timeframes — no need to switch charts manually.
- Alerts. Optional on-screen alerts and push notifications when a new confirmed signal appears.
Key Features
- Adaptive by design. One line replaces several moving averages with different periods.
- Fewer false signals. Dual filtering — line slope plus multi-timeframe confirmation.
- Clear panel. All key information gathered in one place on the chart.
- Flexible alerts. On-screen alerts and push notifications.
- Non-repainting. Values on closed bars are fixed.
- Native MT4 build. Written for the classic MetaTrader 4 architecture, with no dependency on external files or hidden settings.
Main Parameters
- InpPeriod — adaptive line calculation period.
- InpATRPeriod , InpVolatilityFactor — volatility channel parameters.
- InpSlopeThreshold — slope angle threshold for signal confirmation.
- InpConfirmTF1 , InpConfirmTF2 — timeframes used for multi-timeframe confirmation.
- InpShowPanel — toggle the info panel.
- InpAlertsEnabled , InpPushNotifications — alert controls.
Usage Recommendations
- Tune InpPeriod and InpVolatilityFactor to the volatility of the specific instrument.
- Use the multi-timeframe confirmation panel as a filter, not as a standalone signal.
- Test the indicator's behavior on history and on a demo account before live trading.
Disclaimer
This indicator is a technical analysis tool and does not guarantee profitable trades. Trading financial markets involves the risk of capital loss. The decision to open trades remains entirely with the user.
