Tradinglab XPMA
- Indicatori
- Nasimul Haque Choudhury
- Versione: 1.0
- Attivazioni: 5
XPMA is an all-in-one moving average indicator for MetaTrader 5 that combines 11 different MA algorithms into a single, unified tool. Instead of switching between multiple indicators, xpMA lets you select your preferred moving average type from a single drop-down and instantly see color-coded trend direction, entry signal arrows, and real-time alerts — all on the main chart window. Critically, XPMA never repaints — every signal that appears on the chart is final and will never move or disappear after the bar closes.
Key Benefits
One Indicator, 11 Moving Averages
Stop cluttering your chart with multiple MA indicators. xpMA bundles every major moving average method into one clean tool:
| # | Type | Description |
|---|---|---|
| 1 | SMA | Simple Moving Average — the classic baseline |
| 2 | EMA | Exponential Moving Average — faster reaction to recent price |
| 3 | SMMA | Smoothed Moving Average — reduced noise for trend following |
| 4 | LWMA | Linear Weighted Moving Average — emphasizes the most recent bars |
| 5 | DEMA | Double Exponential MA — dramatically reduces lag vs standard EMA |
| 6 | TEMA | Triple Exponential MA — even faster response, minimal lag |
| 7 | T3 | T3 Moving Average — ultra-smooth with adjustable volume factor |
| 8 | JMA | Jurik Moving Average — adaptive, low-noise smoothing |
| 9 | HMA | Hull Moving Average — near-zero lag with smooth output |
| 10 | DECEMA | DECEMA — advanced multi-pass exponential smoothing |
| 11 | SATL | Spectrum Analysis Trend Line — frequency-domain smoothing |
Switch between all 11 types instantly with a single parameter change. No reloading, no extra files.
Confirmed, Non-Repainting Signals
This is the feature that separates xpMA from the majority of MA-based indicators on the market: xpMA does not repaint.
- Signal arrows and trend color changes are locked in on bar close — they are never moved, removed, or redrawn on historical bars
- What you see on the chart is exactly what a live trader would have seen in real time — no post-hoc revision
- Backtesting and forward testing results are consistent and trustworthy because past signals are stable
- Alerts only fire once per signal, on the close of the signal bar, eliminating false triggers from intra-bar noise
With many indicators, arrows that look perfect in hindsight simply vanish or shift as new bars arrive. With xpMA, a signal that printed is a signal that was real.
Instant Trend Direction at a Glance
The MA line dynamically changes color based on trend direction:
- Blue — price is trending upward (bullish momentum)
- Red/Orange — price is trending downward (bearish momentum)
- Gold — the base MA line, always visible for reference
Direction is determined by comparing the current MA value against the average of the previous Step_Period bars, filtering out minor oscillations and keeping the signal clean.
Built-in Entry Signal Arrows
When the trend changes direction, xpMA automatically plots an arrow directly on the chart:
- Up arrow at trend reversals to bullish — placed below the MA line
- Down arrow at trend reversals to bearish — placed above the MA line
- Arrow color, size, and symbol code are all fully customizable
- Arrows can be toggled off entirely if you prefer a clean line view
Real-Time Alerts — Never Miss a Signal
xpMA fires alerts the moment a trend change is detected on the current bar:
- Pop-up screen alert — triggers instantly when a new signal forms
- Email alert — receive signal notifications directly to your inbox, even when away from the terminal
- Alerts include the symbol name and timeframe (e.g., EURUSD:H1 - Up Signal ) for quick identification
- Duplicate alert suppression prevents repeat notifications on the same bar
Timeframe-Optimized Arrow Positioning
Arrow offset is automatically scaled to the active chart timeframe — arrows are never too close or too far from the line, looking correct on M1 through MN1 without any manual tuning.
Advanced Signal Buffer for EA Integration
xpMA exposes a dedicated signal buffer (buffer index 3) that outputs:
- +1 on a bullish trend change
- -1 on a bearish trend change
- 0 when no signal is present
This makes it straightforward to read xpMA signals in Expert Advisors using CopyBuffer() .
Input Parameters
| Parameter | Default | Description |
|---|---|---|
| MA_Period | 34 | Lookback period for the moving average |
| MA_Type | EMA | Moving average algorithm (11 choices) |
| MA_Applied | Close | Price type applied to the MA calculation |
| T3MA_VolumeFactor | 0.8 | Volume factor for the T3 MA type |
| JMA_Phase | 0.0 | Phase parameter for the Jurik MA |
| Step_Period | 4 | Number of bars used to determine trend direction |
| Arrows_On | true | Enable/disable signal arrows on chart |
| UpArrowCode | 233 | Wingdings font code for the up arrow symbol |
| DownArrowCode | 234 | Wingdings font code for the down arrow symbol |
| UpArrowColor | DodgerBlue | Color of the bullish signal arrow |
| DownArrowColor | OrangeRed | Color of the bearish signal arrow |
| UpArrowSize | 2 | Size of the bullish signal arrow |
| DownArrowSize | 2 | Size of the bearish signal arrow |
| Alert_On | true | Enable/disable pop-up alerts |
| Email_Alert | false | Enable/disable email notifications |
| DebugMode | false | Print diagnostic messages to the Experts log |
Who Is This For?
- All traders who have been burned by repainting indicators and need signals they can actually trust
- Trend traders who want a single, reliable MA line that clearly shows trend direction without extra clutter
- Scalpers and day traders who need low-lag types like TEMA, HMA, or JMA on shorter timeframes
- Swing and position traders who prefer smoother types like SMMA, T3, or SATL on higher timeframes
- EA developers who need a clean signal buffer to read directional changes programmatically
- Traders who travel or trade part-time and rely on email alerts to stay notified of setups
Notes
- When using T3, JMA, HMA, DECEMA, or SATL types, the corresponding external indicator file must be present in your MT5 Indicators folder.
- The indicator plots directly on the main chart window — no separate sub-window required.
- The short name displayed on the chart automatically updates to reflect the active MA type and period (e.g., xpMA_EMA(34) ).
