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
Commandes similaires
اسكاليبنج سريع و اهداف ربح عاليه بدقه عاليه ساعات التداول من افتتاح السوق الى الساعه ٨ صباحاً ثم يغلق ويفتح تلقائياً من العصر الساعه ٦ عصراً الى الساعه ٨ صباحاً مع الحفاظ على راس المال دون استخدام تراينجل او جارد ولا يعنل وقت الاخبار ويقوم بتأمين الصفقات الرابحه بسرعه عاليه جداً والذقه في اختيار الصفقات اعتماداً على price action واقل drawdown التركيز على اوقات السيوله العاليه ادارة راس
Hello, I am looking for a good algo code for XauUSd trade any one good algo suggest me. Note:- 1. High winning rate 2. Min. 1 Year Back tested data required I pay good amount for this if any one selling this type algo
I am looking for an experienced MQL5 developer to convert a complex TradingView Pine Script (will provide the script from tradingview) into a fully automated MT5 Expert Advisor -bot. The TradingView script includes: Market Structure (BOS, CHoCH, Swing BOS) Strong / Weak High & Low Equilibrium (Premium / Discount zones) Volumetric Order Blocks Fair Value Gaps (FVG / VI / OG) Accumulation & Distribution zones Equal
// Add this to your EA after ExportState() function void SendToBase44(const string state, const string dir, double entry, double sl, double tp) { string url = " https://preview-sandbox--ee0a32a725b788974de435e8cef40b7a.base44.app/api/functions/receiveEAState "; string headers = "Content-Type: application/json\r\n"; string json = "{" "\"symbol\":\""+_Symbol+"\","
Hello! I am looking for an experienced, top-rated developer to build highly profitable strategy software that provides accurate signals for both long-term and short-term trades. The software must analyse the market correctly, indicating when to enter and where to set Take Profit (TP) and Stop Loss (SL) levels. It must deliver accurate results across all markets, including Forex, cryptocurrencies, metals, indices, and
I want EA would work like a bot. I will share the box size on daily market for XAUUSD AND BTC . The bot should apply the same box size on charts and when super trend signals buy it should buy and when sell it should sell with quantity which will shared like 0.01 or 0.10 Secondly when the trade is executed it should carry till trailing SL as for example If supertrend gives Buy signal Entry done at 100 for example and
I recently purchased an off the shelf 'multiple positions executor' EA in order to open multiple trades simultaneously using MT5 however the orders would fail. It seems they would fail because the EA uses PIPs and the broker I use with MT5 uses Points. The EA was sending an order with SL/TP values that violated the broker’s symbol rules. I need an EA developed which Opens multiple market orders simultaneously
For only developer who understand Chaos/ Profiunity trading system by Bill WIlliams, Create The Profitunity System Trading based on Bill Williams Chaos theory, Trade based on Trend Affirmation in Daily, entry in H4, using Williams Fractal, Williams Alligator, Awesome Oscillator, Accelerator Oscillator, Market Facilitation Index. Balance Line, entry on Reversal, add on while market show continuation sign. Please quote
Hi, I am looking for someone who has already developed a high-performance Gold EA that can outperform the one shown in my screenshot. If you have such an EA, please apply for this job. Please describe how the EA works (for example, whether it uses a grid system) and provide backtest results along with the set files. If the EA meets my expectations, you can make the necessary adjustments and I will use it as my own
Requirements Specification examples Here is an example of Requirements Specification for the development of the MACD Sample Expert Advisor, which is available in the MetaTrader 5 standard package. 1. The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average