26
Mt5 ea
UpworkPKNot specifiedintermediate
MetaTrader 4MetaTrader 5AutomationForex TradingMQL 4Algorithm Development
I need an MT5 Expert Advisor with the following simple logic:
1. INITIAL TRADES
When the EA starts, open two trades:
• Buy 0.01 lot – TP 10 pips
• Sell 0.01 lot – TP 10 pips
2. RE-ENTRY AFTER TP
When a trade hits TP:
• Wait for the next 1-minute candle to CLOSE.
• Then open a new trade in the SAME direction.
• Lot = 0.01, TP = 10 pips.
3. GRID TRADES (50 PIPS BASED)
If market moves 50 pips against the position, grid trades are opened at fixed price steps (every 50 pips).
Example:
5000 → 0.01 initial trade
5005 → next grid
5010 → next grid
IMPORTANT:
• Do NOT open grid trades immediately.
• Wait for the current 1-minute candle to CLOSE, then open the grid trade.
• Only one grid trade per level.
4. LOT MULTIPLIER
Each new grid lot = previous lot × 1.7
Example lots:
0.01 → 0.02 → 0.03 → 0.05 → 0.08 → 0.14 → 0.24
5. BASKET TAKE PROFIT (GRID ONLY)
Grid trades do NOT use individual TP.
Basket TP rule:
0.01 lot = $1 profit target
Example:
0.01 + 0.02 + 0.03 + 0.05 = 0.11 lots
Basket TP = $11
The EA should calculate the total lots of all grid trades and update the Take Profit of all grid trades dynamically so that when the total profit reaches the basket target, all grid trades close together.
Unlock AI intelligence, score breakdowns, and real-time alerts
Upgrade to Pro — $29.99/mo