Duc Thang Nguyen
Duc Thang Nguyen
  • Bilgiler
yok
deneyim
2
ürünler
1
demo sürümleri
0
işler
0
sinyaller
0
aboneler
Arkadaşlar

Profillerinden veya arama yoluyla arkadaş ekleyerek, onlarla kolayca iletişim kurabilir ve sitede çevrimiçi olup olmadıklarını takip edebilirsiniz

Duc Thang Nguyen
Duc Thang Nguyen
Two trend-following EAs with full risk controls: 2MA Trend EA and MA Crossover Trend EA
Hello everyone,
I'm TagHN, a developer and systematic trader. Today I'm releasing my first two Expert Advisors on the MQL5 Market. Both are trend-following systems built around moving averages, with the risk-management layer I use in my own trading. This post explains what each EA does, how they differ, and how to test them properly before deciding anything.
1. Two MA Trend EA
https://www.mql5.com/en/market/product/211610
The entry logic is not a classic MA crossover. A buy signal requires two conditions on closed bars:
- the short MA is above the long MA (trend state), and- the closing price crosses up through the long MA.
Sell signals are mirrored. This "price crosses the long MA in the direction of the MA state" condition is the core of the strategy.
The default settings are configured for XAUUSD M15 (SMA 9/21, trend MA 100, SL 1.1% / TP 4% of price, Bollinger breakout and volume filters on), so you can run it in the Strategy Tester as-is.
2. MA Crossover Trend EA
https://www.mql5.com/en/market/product/211619
This one uses the classic moving-average crossover: buy when the short MA crosses above the long MA on closed bars, sell on the opposite cross. The default settings are configured for USDJPY M30 (EMA 20/34, trend EMA 100, SL 0.5% / TP 2%).
What both EAs share
- Optional filters: trend MA, max distance from trend MA, RSI (rising/falling with thresholds), MACD (position + consecutive-bar confirmation), Bollinger Bands (breakout or minimum-width), and volume (relative / spike; 2MA also has a multi-window mode).- SL/TP by percent of price, ATR multiple, or fixed points; trailing stop follows the same mode.- 24-hour entry filter — enable or disable entries for each hour of the day (server time) plus weekday switches, so you can cut the hours that don't work for your symbol without touching code.- Breakeven mover and optional pyramiding.- Optional equity guard: close all of the EA's positions when equity drops by a configurable % (off by default — you set your own risk level).- Works on any symbol and timeframe (best on XAUUSD, USDJPY and ETHUSD); the EA trades the chart it is attached to.- Ready-made .set files for several symbol/timeframe combinations are listed in each product description.
Backtest (Strategy Tester, real ticks, default settings, $10,000 deposit, 2021.01.01 - 2026.11.26):
- Two MA Trend EA - XAUUSD M15: 632 trades, profit factor 1.59, net profit $2,822, max equity drawdown 2.62%.- MA Crossover Trend EA - USDJPY M30: 333 trades, profit factor 1.89, net profit $3,125, max equity drawdown 1.46%.
Full tester screenshots are on each product page. These are historical backtest results, not real trading results, and do not guarantee future performance.
How to test before you buy
Every Market product has a free demo that runs in the Strategy Tester. Please use it:
1. Download the demo from the product page.2. Run it on your broker's data with the default settings first (XAUUSD M15 for 2MA Trend EA, USDJPY M30 for MA Crossover Trend EA), real ticks, and a deposit close to what you would actually trade.3. Then try the provided .set files and your own variations — one change at a time.
Backtest results depend on the broker's feed, spread, and settings, and past performance does not guarantee future results. I don't promise profits — what I promise is clean, well-documented code, fast support in the product comments, and free updates.
Support
Questions about settings, set files, or tester results are welcome in the Comments section of each product page — I read and answer everything there. If you find a bug, tell me the symbol, timeframe, settings, and the Experts/Journal log lines, and I'll fix it.
Thank you for reading, and good luck with your testing.
— TagHN
Duc Thang Nguyen
Duc Thang Nguyen
Two trend-following EAs with full risk controls: 2MA Trend EA and MA Crossover Trend EA

Hello everyone,

I'm TagHN, a developer and systematic trader. Today I'm releasing my first two Expert Advisors on the MQL5 Market. Both are trend-following systems built around moving averages, with the risk-management layer I use in my own trading. This post explains what each EA does, how they differ, and how to test them properly before deciding anything.

1. Two MA Trend EA

https://www.mql5.com/en/market/product/211610

The entry logic is not a classic MA crossover. A buy signal requires two conditions on closed bars:

- the short MA is above the long MA (trend state), and
- the closing price crosses up through the long MA.

Sell signals are mirrored. This "price crosses the long MA in the direction of the MA state" condition is the core of the strategy.

The default settings are configured for XAUUSD M15 (SMA 9/21, trend MA 100, SL 1.1% / TP 4% of price, Bollinger breakout and volume filters on), so you can run it in the Strategy Tester as-is.

2. MA Crossover Trend EA

https://www.mql5.com/en/market/product/211619

This one uses the classic moving-average crossover: buy when the short MA crosses above the long MA on closed bars, sell on the opposite cross. The default settings are configured for USDJPY M30 (EMA 20/34, trend EMA 100, SL 0.5% / TP 2%).

What both EAs share

- Optional filters: trend MA, max distance from trend MA, RSI (rising/falling with thresholds), MACD (position + consecutive-bar confirmation), Bollinger Bands (breakout or minimum-width), and volume (relative / spike; 2MA also has a multi-window mode).
- SL/TP by percent of price, ATR multiple, or fixed points; trailing stop follows the same mode.
- 24-hour entry filter — enable or disable entries for each hour of the day (server time) plus weekday switches, so you can cut the hours that don't work for your symbol without touching code.
- Breakeven mover and optional pyramiding.
- Optional equity guard: close all of the EA's positions when equity drops by a configurable % (off by default — you set your own risk level).
- Works on any symbol and timeframe (best on XAUUSD, USDJPY and ETHUSD); the EA trades the chart it is attached to.
- Ready-made .set files for several symbol/timeframe combinations are listed in each product description.

How to test before you buy

Every Market product has a free demo that runs in the Strategy Tester. Please use it:

1. Download the demo from the product page.
2. Run it on your broker's data with the default settings first (XAUUSD M15 for 2MA Trend EA, USDJPY M30 for MA Crossover Trend EA), real ticks, and a deposit close to what you would actually trade.
3. Then try the provided .set files and your own variations — one change at a time.

Backtest results depend on the broker's feed, spread, and settings, and past performance does not guarantee future results. I don't promise profits — what I promise is clean, well-documented code, fast support in the product comments, and free updates.

Support

Questions about settings, set files, or tester results are welcome in the Comments section of each product page — I read and answer everything there. If you find a bug, tell me the symbol, timeframe, settings, and the Experts/Journal log lines, and I'll fix it.

Thank you for reading, and good luck with your testing.

— TagHN
Duc Thang Nguyen ürün yayınladı

MA Crossover Trend EA — trend-following Expert Advisor for MetaTrader 5, built on the classic moving average crossover. Default settings are configured for USDJPY on the M30 timeframe. At a glance Default chart: USDJPY M30 — attach the EA and test as-is, no set file needed. Strategy Tester backtest with default settings (real ticks, 2021.01.01 – 2026.11.26, $10,000 deposit): 333 trades, profit factor 1.89, maximum equity drawdown 1.46%. Full details in the "Backtest results" section below;

Duc Thang Nguyen ürün yayınladı

Two MA Trend EA — trend-following Expert Advisor for MetaTrader 5, default settings configured for XAUUSD on the M15 timeframe. At a glance Default chart: XAUUSD M15 — attach the EA and test as-is, no set file needed. Strategy Tester backtest with default settings (real ticks, 2021.01.01 – 2026.11.26, $10,000 deposit): 632 trades, profit factor 1.59, maximum equity drawdown 2.62%. Full details in the "Backtest results" section below; screenshots are on this page. Risk controls: fixed stop loss

Duc Thang Nguyen
MQL5.community'e kayıt oldu