欢迎访问 外汇EA下载与MT4/MT5自动交易资源 - 聚合外汇EA、黄金EA、量化交易工具与自动化交易实战内容。
登录 注册

适用于 MT5 的简单自动趋势跟踪 EA (Simple Auto Trend Folowing EA For MT5)

author emer | 2 人阅读 | 0 人评论 |
来源:ForexFactory · Trading Systems · 原帖链接
原帖作者:AndreiWN
发布日期:First Post: Sep 11, 2024 7:58am
Hello everyone, I developed an interesting robot for Trend Trading, as this is its nature, I recommend using it in assets that have this characteristic, such as stocks and indices.

Feel free to test, perform optimizations and share the results here

Trade Logic:

  1. Buy Conditions (Long):
    The robot buys when the price breaks above a certain level defined by a multiplier of the ATR value, signaling a potential uptrend. It only opens a buy if long positions are allowed and no sell position is open.

Attached Image (click to enlarge)
Click to Enlarge

Name: screenshot.png
Size: 6 KB

  1. Sell Conditions (Short):
    The robot sells when the price breaks below a certain level, signaling a possible downtrend. The sell is executed only if short positions are allowed and no buy position is open.

Attached Image (click to enlarge)
Click to Enlarge

Name: screenshot.png
Size: 5 KB

Closing Trades:

  1. Closing Buy:
    The buy position is closed if the price breaks below the lower level, indicating a reversal or either the take profit or the defined stop loss is reached, whichever happens first
  2. Closing Sell:
    The sell position is closed when the price breaks above the upper level, also signaling a reversal or either the take profit or the defined stop loss is reached, whichever happens first

Stop Loss, Take Profit, and Trailing Stop:
Stop loss and take profit levels are automatically set using ATR multipliers, which adjust according to market volatility. Additionally, a trailing stop feature moves the stop loss as the trade becomes profitable, helping to lock in gains.

Capital curve of the last 10 years in APPL H1

Attached Image (click to enlarge)
Click to Enlarge

Name: screenshot.png
Size: 25 KB


Below I will also attach the parameters used in this optimization

Attached Image (click to enlarge)
Click to Enlarge

Name: screenshot.png
Size: 9 KB

Attached File(s)
File Type: ex5 #0045 - Trend Following Levels.ex5   30 KB | 1,328 downloads

Attached File(s)
File Type: mq5 #0045 - Trend Following Levels.mq5   14 KB | 1,633 downloads

原帖附件 (6)

📦 帖子附件汇总 (5)

以下是回帖中所有共享的附件(5 个,已去重)。

🔐
请登录后参与评论
注册满12小时后评论,即可解锁附件下载
立即登录