WATL for MT5: Automated Trend Analysis Indicator
Info
The WATL for MT5: Automated Trend Analysis Indicator is a Indicator for MetaTrader 5 that the indicator identifies trend waves using two moving averages: a fast sma based on closing prices and a slow lwma based on weighted prices ((h+l+2c)/4). A trend is in progress when the fast moving average is above (uptrend) or below (downtrend) the slow one.
Usage
This tool is typically used for trend following strategies across multiple currency pairs.
Platform
This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use WATL for MT5: Automated Trend Analysis Indicator
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
What this tool does
The indicator identifies trend waves using two moving averages: a fast SMA based on closing prices and a slow LWMA based on weighted prices ((H+L+2C)/4).
Typical Use Case
This Indicator excels in trend following on MetaTrader 5.
Compatible Platform & Setup
This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.
Description & Settings
Related: Simple License for MT4/MT5: Secure Your EA with Account, Expiry, and Server Controls - another powerful indicator for MetaTrader 5 traders.
The indicator identifies trend waves using two moving averages: a fast SMA based on closing prices and a slow LWMA based on weighted prices ((H+L+2C)/4). A trend is in progress when the fast moving average is above (uptrend) or below (downtrend) the slow one. If the distance between them falls below the 'Trigger sensitivity (points)' threshold, the price enters a 'neutral zone' and the trend remains unchanged.Also recommended: Pending Order Inspector MT5: Pre-Trade Analysis Tool - similar indicator with strong performance on MetaTrader 5.
When one wave transitions to another, the indicator captures the completed wave and marks its extreme point. For uptrends, this is the high; for downtrends, it is the low. An arrow is then plotted at this extreme point. This arrow appears with a delay, after the wave has changed, but is positioned on the bar of the extreme itself and is not redrawn on subsequent closed bars.
Wave analysis is conducted simultaneously across three timeframes:
High pivot (red arrows) represent large waves, using a slow LWMA with a 'High period' and a fast SMA with a period of 'High period / 7'.
Low pivot (dark gold arrows) represent medium-sized waves, using a slow LWMA with a 'Low period' and a fast SMA with a period of 'Low period / 5'.
Lowest pivot (purple arrows) represent small waves with fixed periods of 2 and 5.
Interpreting the Readings
Arrows indicate the most recent confirmed market peaks and troughs. Larger timeframes yield more significant levels. The convergence of arrows of different colors at a single extreme point suggests a strong peak or trough.
The HTL and LTL lines are drawn connecting the last two pivots of the same type. The resistance line connects two declining peaks, and the support line connects two rising troughs. These lines extend to the right by a defined proportion, controlled by the 'HTL: extension factor' and 'LTL: extension factor' parameters respectively. A breakout of these lines signals a change in the trend structure. The HTL is based on major waves, while the LTL is based on medium-sized waves.
The FTL forecast line originates from the most recent major peak and extends to the moving average of the highs, recalculating with each new bar. This serves as a dynamic resistance reference point.
External Parameters
Basic Settings
High period: Sets the period for analyzing large waves.
Low period: Sets the period for analyzing medium-sized waves.
Trigger sensitivity (points): Defines the neutral zone threshold in points. A higher value results in less frequent wave changes.
Forecast high trend line: Enables or disables the forecast line.
Keep lines after indicator removal: Determines if trend lines remain on the chart after the indicator is removed.
Show author label on chart: Displays or hides the author's label.
Semafor Drawing Adjustment
Draw high pivot semaphore, Draw low pivot semaphore, Draw lowest pivot semaphore: Enable or disable arrows for each respective pivot level.
High Trend Lines Adjustment (and Low Trend Lines Adjustment, prefixed with LTL)
HTL: draw lines: Toggles the drawing of trend lines.
HTL: resistance colour and HTL: support colour: Set the colors for resistance and support lines.
HTL: line style and HTL: line width: Define the style and thickness of the lines.
HTL: extension factor: Specifies how far the line should extend to the right.
HTL: lines kept on chart: Controls the number of recent lines to display.
HTL: min bars between pivots: Sets the minimum number of bars required between two pivots to draw a line.
High Semaphore Adjustment (and Low Semaphore Adjustment)
High pivot: text alert: Enables or disables text alerts for high pivots.
High pivot: sound file: Specifies a sound file for pivot alerts.
High pivot: arrow offset (points): Adjusts the offset of the arrow from the extreme point.
High pivot: arrow code: Selects the arrow symbol code (e.g., Wingdings).
Lowest Semaphore Adjustment
Lowest pivot: arrow code: Selects the arrow symbol code for the lowest pivots.
Forecast Trend Line Adjustment
FTL: colour, FTL: line style, FTL: line width: Configure the appearance of the forecast trend line.
FTL: extension factor: Determines the extension of the forecast line to the right.
Usage Guide
This indicator is compatible with any trading instrument and timeframe. To install, copy the file to the MQL5\Indicators folder, compile it, and then drag it onto your chart. For more frequent signals, reduce the 'High period' and 'Low period'. For smoother, less frequent waves, increase these values. On fast timeframes and instruments with 5-digit pricing, consider increasing the 'Trigger sensitivity (points)'.
Based on the open-source MQL4 code for the Waves Auto Trend Indicator (WATL) by idealfx. This version has been ported to MQL5 and updated for 2026.
You may also like: Quantora Account Health Monitor MT5: Professional Account Health and Risk Monitoring - excellent alternative for indicator users on MetaTrader 5.
Source Code
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_chart_window
#property indicator_buffers 3
#property indicator_plots 3
#property indicator_label1 "High pivot"
#property indicator_type1 DRAW_ARROW
#property indicator_color1 clrRed
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.