Duc Thang Nguyen
Duc Thang Nguyen
  • 信息
不
经验
2
产品
1
演示版
0
工作
0
信号
0
订阅者
好友

通过他们的个人资料或用户搜索添加好友,您将能够看到他们是否在线

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 已发布产品

MA Crossover Trend EA — MetaTrader 5 趋势跟踪智能交易系统,基于经典均线交叉。默认参数为 USDJPY M30 周期配置。 概览 默认图表:USDJPY M30 —— 直接加载 EA 即可测试,无需参数文件。 策略测试器回测(默认参数,真实逐笔数据,2021.01.01 – 2026.11.26,入金 $10,000):333 笔交易,盈利因子 1.89,最大净值回撤 1.46%。详情见下方「回测结果」部分;截图在本页面。 风险控制:每笔交易都有固定止损;可选净值保护(净值下跌达到设定比例时平掉全部仓位);24 个按小时入场勾选框加星期开关。 无马丁、无网格。可选的加仓(金字塔)默认关闭。 入场逻辑(仅在已收盘 K 线上评估) 买入:短周期均线向上穿越长周期均线。 卖出:短周期均线向下穿越长周期均线。 出现反向交叉时平掉已开仓位。反向新仓位只能由之后出现的入场信号开出。 可选过滤(均可关闭) 趋势均线过滤(如 EMA 200):仅在趋势均线之上买入、之下卖出。 趋势距离过滤:价格离趋势均线太远时阻止入场。 RSI 过滤,带上升/下降确认。 MACD

Duc Thang Nguyen 已发布产品

Two MA Trend EA — MetaTrader 5 趋势跟踪智能交易系统,默认参数为 XAUUSD M15 周期配置。 概览 默认图表:XAUUSD M15 —— 直接加载 EA 即可测试,无需参数文件。 策略测试器回测(默认参数,真实逐笔数据,2021.01.01 – 2026.11.26,入金 $10,000):632 笔交易,盈利因子 1.59,最大净值回撤 2.62%。详情见下方「回测结果」部分;截图在本页面。 风险控制:每笔交易都有固定止损;可选净值保护(净值下跌达到设定比例时平掉全部仓位);24 个按小时入场勾选框加星期开关。 无马丁、无网格。可选的加仓(金字塔)默认关闭。 交易方式 入场触发条件是价格穿越长周期均线,并由短、长均线的相对位置确认。这不是经典的均线交叉系统:两条均线不需要互相交叉——它们的相对位置起趋势状态过滤作用,入场信号由价格本身给出。 入场逻辑(仅在已收盘 K 线上评估) 买入:短均线在长均线之上,且收盘价向上穿越长均线(前一根收盘价在长均线处或其下方,当前收盘价在其上方)。 卖出:短均线在长均线之下,且收盘价向下穿越长均线。

Duc Thang Nguyen
已在MQL5.community注册