Hey there, fellow traders! Today, I’m excited to share a powerful trading system that leverages the EMA and Williams %R indicators, aptly named EMAplusWPR. This Expert Advisor (EA) is designed to trade on MetaTrader 4 and can be a great addition to your trading toolkit.
Get the Actual Version: http://codebase.mql4.com/en/code/10413
This EA is built to trade with an initial equity of €1,000 while keeping drawdown to a minimum. I've put a lot of effort into creating this system, and I genuinely hope you find it useful. I’m all ears for any feedback you might have!
Key Features of EMAplusWPR
- Inputs: The parameters EMA and iWPRPeriod are optimized for trading the EUR/USD on a 5-minute timeframe.
- Take Profit: 200 pips
- Max Stop Loss: 50 pips
- Max Lots: 0.1 (this is the maximum lot size per position)
- Max Contracts: 2 (to maintain smoother equity movements)
- EMA Period: 144 (to identify the trend)
- Williams %R Period: 46 (to determine buy/sell signals)
Test Results Without Position Sizing
The following results are based on a fixed lot size of 0.1:
| Parameter | Value |
| Initial Deposit | €1,000.00 |
| Total Net Profit | €1,624.88 |
| Gross Profit | €4,601.32 |
| Gross Loss | -€2,976.44 |
| Profit Factor | 1.55 |
| Total Trades | 417 |
| Winning Trades (%) | 73.62% |
| Largest Profit Trade | €45.15 |
| Largest Loss Trade | -€39.67 |

To improve your position sizing, consider increasing the max lot size. Here's the position sizing code I'm using:
Ilo = 0.1 * MathSqrt((AccountBalance()) / 300);
Lots = NormalizeDouble(Ilo, 1);
if (Lots < 0.1) Lots = 0.1;
if (Lots > maxLots) Lots = maxLots;
Strategy Tester Report for EMAplusWPR with Position Sizing

So there you have it! The EMAplusWPR EA is a solid way to trade the trend while keeping your risk in check. If you give it a try, I’d love to hear your thoughts and results!
Comments 0