MetaTrader 5 Expert Advisor
Manual Start – Auto Hedge – Dynamic Lot Sequence – Price-Based SL/TP
1. Platform & Account
- Platform: MetaTrader 5
- Account type: Hedging
- Broker: Exness
- Must work on Cent and Standard accounts
- Symbol: XAUUSD
- Must support different symbol digits automatically
2. First Trade (Manual Only)
- EA must NOT open the first trade
- First trade is opened manually by the trader
- Direction: Buy or Sell
- Lot size: chosen manually by the trader
- EA starts only after detecting this manual trade
3. Lot Sequence (Input Parameter Only)
Example:
LotSequence = "0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.10,0.11,0.12,0.13"
Rules:
- EA detects which lot from LotSequence was used manually
- EA continues from the next lot in sequence
- Each Stop Loss -> next lot
- Any Take Profit -> reset to first lot
- If last lot is used and TP not hit -> stop opening new trades
- No martingale formulas
- No x2 / 4-3 logic
- No balance-based lot calculation
4. Stop Loss & Take Profit (Price-Based)
For XAUUSD:
- Take Profit = +4.00 USD price movement
- Stop Loss = -3.00 USD price movement
Must work on:
- Cent accounts (~4000 / 3000 points)
- Standard accounts (~400 / 300 points)
Use:
- SYMBOL_POINT
- SYMBOL_DIGITS
- SYMBOL_TRADE_TICK_SIZE
Do NOT hardcode points.
5. Core Trading Logic
- Manual trade gets TP +4.00 and SL -3.00
- At SL price place opposite pending order
Buy -> Sell Stop
Sell -> Buy Stop
- Pending order lot = next LotSequence value
- Pending order also has TP +4.00 and SL -3.00
- SL price is always the same as next pending order price
6. Stop Loss Continuation
- If SL is hit, pending order becomes market order
- EA moves to next lot
- EA sets TP/SL
- EA places next opposite pending order at SL price
- Continue until TP hit or LotSequence ends
7. Take Profit Reset
- If any trade hits TP:
Close all open and pending orders
Reset lot index to first lot
Open new trade in TP direction with first lot
8. General Settings
- Magic Number input
- Slippage input
- Max Spread optional
- Enable/Disable EA
9. Technical Requirements
- Pure MQL5
- Clean, commented code
- No DLL
- No indicators
- No hidden logic
Ordini simili
I want robot that can help me trade and make some money so that I can be able to learn from it while I'm still in depot account now.Is how it gonna help me with some money
Articles How to create Requirements Specification for ordering an indicator 76 MetaQuotes 51 380 Table of Contents How can algo trading make a trader's live easier? Supplement text with images and videos Useful programs for creating Requirements Specification Formulating the Requirements Specification as an algorithm Requirements Specification Examples What can I specify in the Requirements Specification? Indicator
Hello, I have two requests: First: Feature Modification Request Currently, the EA places only one pending order at a time. I want to modify this to place two opposite pending orders (Buy Stop and Sell Stop) simultaneously, with the distance between them aligned with the existing Breakeven and Trailing Stop settings in the bot. How it should work: The EA places a Buy Stop above current price and a Sell Stop
I need a custom MT5 expert advisor (EA) designed to mirror trades between two different broker accounts (Master and Slave) running on the same local PC. My primary objective is Synchronous Execution to avoid being exposed to the market due to price mismatches. Core Requirements: Symbol-Agnostic: The EA must automatically copy trades for any symbol I trade (Forex, Gold, Indices, etc.) without needing to hardcode
Hello, I need a professional MT5 Expert Advisor for currency trading. PAIRS: EURUSD, GBPUSD, USDJPY, USDCHF TIMEFRAME: M15 STRATEGY: - EMA 8 cross EMA 21 (entry signal) - EMA 50 for trend filter - RSI 14 confirmation (Buy > 52, Sell < 48) - No trade if RSI > 75 or < 25 SESSION: London + New York only 07:00 to 17:00 GMT No weekend trading TRADE MANAGEMENT: - Lot size: 0.06 - Take Profit: $15 per trade - Stop Loss: $8
I need a MetaTrader 5 Expert Advisor (EA) for Forex trading. Account size: $1000 Requirements: 1. The EA should work only on Forex pairs. 2. Automatic Buy and Sell trades. 3. Lot size starting from 0.04. 4. Stop Loss and Take Profit settings. 5. Only one trade at a time. 6. Works on pairs like EURUSD, GBPUSD, USDJPY etc. 7. Risk management suitable for a $1000 account. 8. Easy settings for lot size, SL, TP and risk
I want to design an EA that can identify key Supports and Resistances. This should be able to work on any timeframe from 1 minute to 1 hour (i.e 1 minute, 5 minutes, 15 minutes and 1 hour time frames.) The EA should be able to determine a Fibonacci retracement from a support and the next resistance point in an uptrend and vice versa (i.e the EA should be able to determine a Fibonacci retracement from a resistance and
Hello guys,i am looking for a good already established ea,that doesnt blow account,only give 5 percent per month with maximum 10 percent drowdown,I need prove,i need to backtest by myself,after that i select the developer
Short Description: I am seeking an experienced MQL4 developer to build a high-frequency Asymmetric Salami Grid EA . This is a sophisticated volatility harvester, not a basic martingale. Key Features to Implement: Virtual Grid Execution: No pending orders; all logic handled in-memory via OnTick . Asymmetric Lot Sizing: Trend-side degression vs. Counter-trend progression . Salami Partial Liquidation: XX% of profits
Hi, I need a custom MT5 indicator based on a multi-timeframe fractal break reversal. 1️⃣ The indicator should use two timeframes: Higher Timeframe (HTF) Lower Timeframe (LTF) (Timeframes should be adjustable in inputs, e.g., HTF = H1 and LTF = M5) 2️⃣ Use standard fractals to detect fractal highs and fractal lows. 3️⃣ Primary signal (HTF): When a Lower High fractal is formed and price breaks that Lower High in one