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

穷举EA (Exhaustion EA)

author emer | 1 人阅读 | 0 人评论 |
来源:ForexFactory · Trading Systems · 原帖链接
原帖作者:midouch
发布日期:First Post: Mar 24, 2016 8:55am | Edited Mar 27, 2016 12:51am
Hi,

I'm new to automated trading and just wanted to share my first EA with you guys. This is a technique that I've been trading for a while (manually) but thought about learning MQL coding to convert the human idea into a robot that executes the trades to compare results and make it easier than monitoring charts all time.

Important Points

- I've tested this EA on demo only. (FxPro Server)
- This EA does not rely on tick data. It open trades based on close/open of new candlestick
- The EA buys when price drops too far below our EMA, and sells when price rises far above our EMA (Counter-trend)
- The EA locks/close all positions when floating profit is met. (Variable based on timeframe and currency traded)

Here's how the EA put trades:

The Main Idea

When price moves too far from EMA up or down the EA will make a trade with a min. position e.g. 0.01 in opposite direction. The idea is that stretched moves will likely be followed with some corrections. The EA will add up to losers when price moves against first trade specific number of pips. e.g. You bought GBPJPY at 150.00 and the EA parameter to open new trade if the current trade is losing 50 pips, it'll open a double position at 149.50 and so on.

Trade Ideas on Chart (How the EA works in Graph)

https://charts.mql5.com/10/635/gbpus...l-services.png
https://charts.mql5.com/10/635/gbpus...services-3.png

Take Profit

The EA will automatically close all trades if floating profit meet what we have set in EA. This is variable because the EA is setup to work on different timeframes/pairs (I'll specify them below)

StopLoss

None.

Parameters to MODIFY before executing/testing the EA per pair/timeframe

Minimum position: You have to tell the EA the position size of your first order. Keep it min. relative to your account balance to avoid large drawdown.
Maximum position: The maximum position size in case price kept going against you first.
Profit: The profit (in your deposit currency) that once met the EA will close all trades automatically (profits+losses together) e.g. 5 means 5 GBP if your account is in pounds.

Make sure you change these according to account balance, trading results will vary greatly based on risk and position sizing. So try different settings.

Which pairs / timeframes can the EA trade currently?

The EA is currently adapted to work on specific pairs/timeframes. Open the code to figure them out and I'm adding more pairs/timeframes as I find best settings.

Backtest and do your homework. If you can improve the parameters to give much better results or fix any bugs in my code (I'm new remember) please do not hesitate to post the edits here.

I'm not responsible for any losses/gains made in live trading. If you decided to trade with it, trade at your own risk.

I'm not posting for any commercial purpose and NEVER will be selling any code or strategy. I am only sharing.

原帖附件 (1)

📦 帖子附件汇总 (15)

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

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