Spezifikation
The strategy combines EMA trend detection, RSI pullback confirmation and ATR-based Stop Loss / Take Profit.
BUY CONDITIONS
- EMA 50 must be above EMA 200.
- RSI period = 14.
- RSI must cross upward through level 35.
- The signal must be confirmed only after the candle is closed.
- Open a BUY at the beginning of the next candle.
SELL CONDITIONS
- EMA 50 must be below EMA 200.
- RSI period = 14.
- RSI must cross downward through level 65.
- The signal must be confirmed only after the candle is closed.
- Open a SELL at the beginning of the next candle.
STOP LOSS / TAKE PROFIT
Use ATR(14).
Stop Loss = ATR × 1.5
Take Profit = ATR × 2.5
ATR multiplier values must be configurable in the EA inputs.
MONEY MANAGEMENT
I need two selectable lot-size modes:
Fixed Lot
Risk Percent
Example:
LotMode = Fixed / RiskPercent
Inputs:
FixedLot = 0.10
RiskPercent = 1.0
When RiskPercent mode is selected, lot size must be calculated according to the Stop Loss distance.
ADDITIONAL RULES
- Maximum one position per symbol for this EA.
- No martingale.
- No grid.
- No averaging.
- Do not open multiple trades from the same signal candle.
- Add a Maximum Spread filter.
- EA must use its own Magic Number.
- Buy and Sell trading should be individually enabled/disabled.
EA INPUTS
Please make the following parameters adjustable:
EMA Fast Period = 50
EMA Slow Period = 200
RSI Period = 14
RSI Buy Level = 35
RSI Sell Level = 65
ATR Period = 14
ATR SL Multiplier = 1.5
ATR TP Multiplier = 2.5
Lot Mode
Fixed Lot
Risk Percent
Maximum Spread
Magic Number
Enable Buy
Enable Sell
IMPORTANT
The EA must use closed candles for signal calculations. I do not want signals changing during the current candle.
Please also make sure the EA does not repeatedly open positions from the same RSI crossing signal.
DELIVERY REQUIREMENTS
I need:
- .mq5 source code.
- .ex5 compiled file.
- Code must compile in the latest MetaEditor without errors.
- No external DLL.
- No external indicators required.
- All calculations should use standard MT5 indicators/functions.
- EA must work in MT5 Strategy Tester.
Before final acceptance, I will test the EA in the MT5 Strategy Tester and verify that entry conditions, SL/TP and lot calculations work as described.
Budget: $40
Expected delivery: 2–3 days
Please apply only if you are comfortable developing and debugging MQL5 Expert Advisors.