WaveTrend Signals MT4
- Indicatori
-
Allan Aparece Ninal
Sviluppo indicatori ed Expert Advisor per MetaTrader 5.
Come lavoro:
- Ogni indicatore viene controllato contro il repainting: i segnali vengono decisi solo su barre chiuse, e un test su ogni tick conferma che non cambiano in seguito. - Versione: 1.0
WaveTrend Signals MT4 is a free MetaTrader 4 indicator that draws the WaveTrend oscillator with its overbought and oversold zones. It marks a BUY or SELL when the two lines cross inside a zone, with alerts.
It places no trades.
It follows the public WaveTrend method by LazyBear, written in MQL4 from the formula. It runs in its own window below the chart.
MetaTrader 4 edition: the same calculation, inputs, signals and alerts as the MetaTrader 5 version. MetaTrader 4 has no colour buffers, so the area is two buffers (above and below zero) and the BUY and SELL dots are two buffers.
Standalone: everything is built in. You do not need to install any other product named on this page.
What you see on the chart
- WT1 as a soft blue line and WT2 (its 4-bar average) as a dotted grey line.
- A pale area for WT1 minus WT2: green above zero, red below. It shows how fast WT1 pulls away from WT2.
- Zone lines at 60 and 53 (overbought) and -53 and -60 (oversold), in soft mid-tones.
- A small grey dot on every cross of the two lines.
- A larger green dot for a BUY: WT1 crosses above WT2 with WT2 at or below -53.
- A larger red dot for a SELL: WT1 crosses below WT2 with WT2 at or above 53.
- A matching arrow on the price chart for each BUY and SELL.
- A small label in the window: WT1 now, rising or falling, and the latest signal with its age.
The colours are soft mid-tones that read on dark and light charts.
How the signal is built
The average price of each bar is compared with its 10-bar average and scaled by its usual distance. That gives a value that mostly stays between -60 and 60. WT1 smooths it over 21 bars. WT2 averages WT1 over 4 bars.
Everything is decided at the close of a bar. A dot, arrow or alert appears on the bar that closed with the cross. It never moves afterwards.
Who it is for
For traders who use an oscillator to time entries in a trend or to spot stretched moves, and for those who know WaveTrend from TradingView.
Not for you if you want a ready-made trading system. It shows where momentum is stretched, and you decide what to do.
Inputs
| Input | Default | Description |
|---|---|---|
| Channel length | 10 | the average and the distance measure of the bar price. |
| Average length | 21 | the smoothing of WT1. |
| Overbought level, outer / inner | 60 / 53 | a SELL needs WT2 at or above the inner level. |
| Oversold level, outer / inner | -60 / -53 | a BUY needs WT2 at or below the inner level. |
| Mark every cross with a small dot | on | - |
| Arrows on the price chart | on | for BUY and SELL, on the last 2000 bars. |
| Arrow colours | blue / red | - |
| State label in the window | on | - |
| Pop-up | on | - |
| Sound | off (file alert.wav) | - |
| Push | on | - |
| off | - | |
| Debug log for bug reports | off | see Found a problem? |
How often
Signals per month per symbol with the defaults (EURUSD, GBPUSD, USDJPY, XAUUSD, BTCUSD, closed bars, 2024 to 2026; a code count, not a trading result). M15 about 45 to 70, H1 about 11 to 18, H4 about 3 to 5, D1 under 1. Most crosses happen outside the zones and get only a grey dot.
Alerts and Expert Advisor use
One alert per closed bar, never while the history loads. The message says BUY or SELL, the WT2 value and the close. For push alerts, set your MetaQuotes ID under Tools, Options, Notifications.
Buffers for Expert Advisors (iCustom): 2 is WT1 and 3 is WT2. Buffers 0 and 1 hold WT1 minus WT2 above and below zero. Buffer 7 holds WT2 on a BUY bar and buffer 8 on a SELL bar. They are empty otherwise.
How it was checked
Code check: WT1, WT2, the area, every cross and every BUY and SELL were compared bar by bar with an independent Python version. It ran in the MetaTrader 4 Strategy Tester on EURUSD, GBPJPY, XAUUSD and BTCUSD at M15, H1 and H4 with three input sets. All 36 files matched (21,893 signals).
Code check: every closed bar of those runs was read again at the end (756,288 bars, 0 changes). An every-tick run on EURUSD H1 (8.4 million ticks, 695 signals) found 0 changes after a bar closed and 0 on the live bar.
Works well with
These are workflow suggestions. I have not found that any pair gives better trading results. You do not need any of them.
| Product | How to use them together | Why |
|---|---|---|
| SMC Zones MT4 | Add it to the same chart. | It draws order blocks, fair value gaps and structure breaks as context. It describes past bars. |
| Session Levels MT4 | Add it to the same chart. | It draws session boxes and previous day and week levels as context. It is not a signal. |
| Divergence Signal Alerts MT4 | Add it to the same chart. | It marks RSI and MACD divergences, a second view of stretched moves. |
Questions
Does it repaint? The lines of the forming bar move with price. Once a bar has closed, its values, dots, arrows and alerts do not change.
Is there a MetaTrader 5 version? Yes, WaveTrend Signals, with the same inputs and signals.
Why does it differ a little from another WaveTrend? Versions differ in how the averages start and in the signal rule. Here the averages start from the first bar, and a signal needs WT2 inside the inner zone at the cross.
Does it work in the Strategy Tester? Yes, in visual mode, on any symbol.
Does it work on gold and crypto? Yes, on any symbol and timeframe.
Will I get alerts on my phone? Yes, push is on by default. Set your MetaQuotes ID.
Found a problem?
- In the inputs, set "Debug log for bug reports" to true.
- Repeat what went wrong.
- Open the Experts tab in the Toolbox. Copy the lines that start with "DBG" and paste them in a comment on this page, with the symbol and timeframe.
- Set the debug log back to false.
The debug lines never contain your account number, name, server, balance or equity.
If it helps your trading, a short review on this page helps other traders find it.
Questions: use the comments on this page or send me a message on MQL5.
The defaults are a starting point. An indicator does not predict price, and trading carries a risk of loss.
