Trend detector Alert
- Indicators
-
Denis Makarov
MQL4/MQL5 developer. I build and improve trading tools for MetaTrader 4 and 5.
What I do:
• Expert Advisors, custom indicators and scripts, from your idea or spec to tested code
• Modification and bug fixing of existing EAs and indicators - Version: 1.10
Trend detector Alert
Trend detector Alert is a technical indicator for MetaTrader 5 that detects crossovers between two Moving Averages and displays clear BUY and SELL signals directly on the chart.
The indicator is designed for traders who use Moving Average crossover strategies and want to receive timely notifications when the market trend changes.
Key Features
-
Two Customizable Moving Averages: Configure both Moving Averages independently.
-
BUY and SELL Signals: Displays an upward arrow when the fast MA crosses above the slow MA and a downward arrow when it crosses below.
-
Trend Direction Tracking: The indicator remembers the last detected trend direction and does not generate repeated signals while the same trend continues.
-
Alert Notifications: Receive popup alerts and sound notifications when a new signal appears.
-
Closed-Bar Signals: Choose between signals on the current candle or confirmed signals after the candle closes.
-
Clean Chart Display: Signals are displayed directly on the price chart.
Input Parameters
Fast Moving Average
-
Fast_Period: Period of the fast Moving Average.
-
Fast_Method: Calculation method (SMA, EMA, SMMA, LWMA).
-
Fast_Price: Applied price.
-
Fast_Shift: Horizontal shift.
Slow Moving Average
-
Slow_Period: Period of the slow Moving Average.
-
Slow_Method: Calculation method (SMA, EMA, SMMA, LWMA).
-
Slow_Price: Applied price.
-
Slow_Shift: Horizontal shift.
Signal Settings
-
SignalOnClosedBar: If true, signals are generated only after a candle closes. If false, signals can appear on the current candle.
Alerts
-
Enable_Alert: Enable or disable popup notifications.
-
Enable_Sound: Enable or disable sound notifications.
-
Alert_Sound: Sound file used for notifications.
Arrows
-
Buy_Arrow_Code: Wingdings code for the BUY arrow.
-
Sell_Arrow_Code: Wingdings code for the SELL arrow.
-
Arrow_Distance: Distance between the signal arrow and the candle, in points.
How It Works
-
The indicator monitors two Moving Averages.
-
A BUY signal appears when the fast MA crosses above the slow MA.
-
A SELL signal appears when the fast MA crosses below the slow MA.
-
Repeated signals in the same trend direction are filtered out.
-
An alert is triggered when a new signal is detected.
Important: Moving Average crossovers are lagging indicators. Signals are not guaranteed to be profitable and should be evaluated together with proper risk management. This indicator does not execute trades automatically.
