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
Similar orders
Title: Design and Development of an Automated Forex Trading Robot Using MQL5 and Machine Learning Techniques Abstract: This project focuses on the design and development of an automated Forex trading robot that integrates MQL5 programming and machine learning techniques. The system aims to predict market movements and execute trades automatically, minimizing human error and emotional trading. By leveraging historical
I’ve been following your profile and I'm interested in your expertise with the ATAS API and C# development. I have a clear technical scope for a high-performance M1 indicator focused on Binary Options and Scalping. The core logic is based on institutional Order Flow convergence: Stacked Imbalances: 300% ratio with a minimum of 3 consecutive levels. Delta/Price Divergence: Filtering for market exhaustion (New Highs
I'm looking to have a tradingview strategy translated to work on ninjatrader. Right now I'm using webhooks together with the platform Crosstrade to automate the strategy and have the trades take place on Tradingview. Let me know if that's something you can help me out with
Hello, Please read the full specification before applying. This project is NOT about building an EA from scratch. I already have a fully working MT5 Expert Advisor. The EA already includes a dashboard, risk management, and some protection systems, but it needs a few more features . So I need an experienced MQL5 developer to modify my existing MT5 EA by replacing the current entry logic with a new breakout strategy
can you help me with editing the existing ATR Trailing Stop Indicator to include a logic to include additional script, where my ninZaRenko bars when it closes above OR below the dynamic stop line, I will be out of trade. Please remember, in this Indicator, now when the price touches the stop line, I am stopped out .. . I want to edit the script, in lieu of the price touch, I like to update this logic to when the bar
The robot should use different indicators for a example smart money indicator and market structure structure and break indicators in order for it to enter the market, it should also be able to tell false breakouts is the Bollinger indicator, and if the market is confirmed to be profitable,the robot should rebuy or resell the market according to the predictions made, it should execute the trades if the market reverses
APARTE DE PASAR EL CÓDIGO A MT5 QUIERO QUE CONTENGA TODOS LOS DATOS NECESARIOS PARA QUE ESTE NUEVO CÓDIGO SE PUEDA USAR EN LA FÁBRICACIÓN DE UN ROBOT, NO SE MUCHO DE ESTO PERO INVESTIGUE QUE DEBE LEER BUFFERS Y OTRAS COSAS
Busco un robot para trading de scalping en oro o forex, el robot debe ser rentable en esos mercados, podemos automatizar mi estrategia basada en medias móviles con estrategia de scalping o bien si él desarollador tiene uno que funcione así y sea rentable podemos ver la opción de un demo o cuenta de lectura para estar seguros de la rentabilidad en el robot
MT4 EA TO TAKE TRADES FROM (A) HYDRA TREND RIDER AND (B) IQ GOLD GANN LEVELS ON MQL5.COM The MT4 version of these two indicators can be found on the mql5.com website with the following links: Hydra Trend Rider: https://www.mql5.com/en/market/product/111010?source=Site +Profile+Seller IQ Gold Gann Levels: https://www.mql5.com/en/market/product/134335?source=Site +Profile+Seller (1) ENTRY (a) Hydra Trend Rider
أنا أبحث عن مبرمج محترف لإنشاء روبوت تداول (Expert Advisor) يعمل على منصة MetaTrader 4 أو MetaTrader 5. مواصفات الروبوت: يعمل على زوج XAUUSD (الذهب) يفتح صفقة شراء أو بيع حسب الإشارة يعتمد على مؤشرين: Moving Average RSI عندما يتقاطع الموفينغ أفريج مع الاتجاه ويؤكد مؤشر RSI يتم فتح الصفقة. إدارة المخاطر: تحديد Stop Loss تحديد Take Profit عدم فتح أكثر من صفقة في نفس الوقت إمكانية تغيير الإعدادات بسهولة. مطلوب: كود نظيف