Spezifikation
File Name: ReverseOrderEA_Description.txt
Purpose: Describes the functionality of the MQL5 Expert Advisor ReverseOrderEA.mq5
---
EA Name:
ReverseOrderEA.mq5
Automated MQL5 Expert Advisor that places reverse pending orders based on existing open trades.
---
Functionality Overview:
This EA monitors all open positions on the current chart symbol and automatically places a reverse pending order (Buy Stop or Sell Stop) based on the trade’s stop loss (SL). The logic ensures:
- Only one reverse pending order per open position.
- Reverse orders are deleted and re-placed if the SL, lot size, or entry changes.
- Reverse orders are canceled if the original position is closed (manually or otherwise).
- Reverse lot size is calculated using a multiplier (default 1.0).
---
Reverse Order Logic:
- BUY position:
- Reverse = Sell Stop at the SL.
- SL = original entry.
- TP = SL − (2 × risk).
- SELL position:
- Reverse = Buy Stop at the SL.
- SL = original entry.
- TP = SL + (2 × risk).
---
Key Components:
✅ CheckAndPlaceReversePendingOrder()
- Loops through open positions.
- Calculates reverse price, SL, TP.
- Ensures only one reverse order exists per position.
- Calls DeleteReverseIfChanged() if parameters differ.
- Places new pending orders with appropriate comment format.
🗑️ DeleteReverseIfChanged()
- Deletes existing reverse pending orders if:
- SL, lot size, or entry price has changed.
🚫 CancelUnusedReverseOrders()
- Deletes reverse orders if the original position is closed or no longer exists.
---
Comment Format:
All reverse orders include a comment:
Reverse_<ticketNumber>_<SL>
This enables matching each pending order to its original trade and verifying its parameters.
---
Inputs:
- lotMultiplier — Multiplier for reverse lot size (e.g., 2 = double lot size).
- magicNumber — Unique magic number to track reverse orders only.
- reversePrefix — Text prefix in order comment (default "Reverse").
---
OnTick Logic:
1. CheckAndPlaceReversePendingOrder()
2. CancelUnusedReverseOrders()
Both are called every tick to keep reverse order logic accurate and synchronized.
---
Notes:
- Works only with positions on the current chart symbol.
- Requires SL on original position to function.
- Does not initiate trades itself — only creates reversals for existing ones.
want to add lot size and tp as step
// Recovery logic
double lotSteps[] = {0.01, 0.02, 0.02, 0.04, 0.04, 0.08, 0.08, 0.04, 0.04, 0.08, 0.08};
double tpMultipliers[] = {2.0, 2.0, 2.5, 2.5, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0};
Bewerbungen
1
Bewertung
Projekte
236
20%
Schlichtung
21
43%
/
19%
Frist nicht eingehalten
0
Beschäftigt
2
Bewertung
Projekte
91
25%
Schlichtung
26
19%
/
54%
Frist nicht eingehalten
25
27%
Frei
3
Bewertung
Projekte
37
54%
Schlichtung
2
50%
/
50%
Frist nicht eingehalten
3
8%
Frei
4
Bewertung
Projekte
31
32%
Schlichtung
8
50%
/
25%
Frist nicht eingehalten
3
10%
Arbeitet
5
Bewertung
Projekte
12
17%
Schlichtung
2
0%
/
50%
Frist nicht eingehalten
1
8%
Frei
6
Bewertung
Projekte
2
50%
Schlichtung
3
0%
/
33%
Frist nicht eingehalten
0
Frei
7
Bewertung
Projekte
14
43%
Schlichtung
0
Frist nicht eingehalten
3
21%
Frei
8
Bewertung
Projekte
552
49%
Schlichtung
57
40%
/
37%
Frist nicht eingehalten
227
41%
Arbeitet
9
Bewertung
Projekte
2
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
10
Bewertung
Projekte
5
40%
Schlichtung
1
0%
/
0%
Frist nicht eingehalten
0
Frei
11
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
12
Bewertung
Projekte
945
47%
Schlichtung
309
58%
/
27%
Frist nicht eingehalten
125
13%
Frei
Ähnliche Aufträge
Powerful Trend-Following Indicator for MT5
100 - 250 USD
Hello traders, I have developed a high-performance trend-following indicator designed to help traders identify trend direction changes and precise entry points in the market. 🔹 Key Features: Detects trend direction changes early Provides clear buy and sell signals Shows accurate entry points Built with a stable architecture that does not repaint Suitable for different trading styles and market conditions Easy to use
Until zone detection is coded , you will be from that point . Trailing Stop Optimization for live chart . Apply with Specific Currency Support . Clean Code . Zone Upper Limit and Lower Limit . Apply with careful understanding of the project requirement
MT5 Trading Bot Developers (Professional Version)
30 - 200 USD
Subject: Professional MT5 Trading Bot Inquiry - Pre-Purchase Requirements Dear [Bot Name/Company Name] Developers, Greetings, I am a professional trader seeking a highly professional and extremely powerful MT5 trading bot , and after extensive research, your product has caught my attention. However, before I click the payment button, I have specific requirements as I am not looking for an ordinary bot, but rather a
hello, please take a moment to review my project. It is for Quanttower. it is very detailed in the instructions. Thank you, Just let me know if you can do it and the whats the cost and timeframe
GoldAI_v2_FINAL
30 - 70 USD
========================================================== Terminal Institusional GOLD AI v2.10 Sinkronisasi Realtime MT4 + Dasbor PWA + AI Multi-TF ========================================================== CARA MENJALANKAN (MUDAH): -------------------------- 1. Ekstrak ZIP ke folder manapun (misal: C:\GoldAI\) 2. Buka folder hasil ekstrak 3. Klik dua kali: INSTALL.bat → installotomatis 4. Klik dua kali
Exe source code
70+ USD
Need a developer to help with a exe file and provide the source code, if you can do this please kidnly apply and tell me what you need to get this started
XAUUSD - TREND TRADER
30 - 500 USD
Find a good entry point and enter the trade .after the first profit of 25% is done then exit the trade .find the good market analysis of the trend and know when the market is on a good trend. After that now know the entry point and the take profit of the slot you have opened .have also a risk management strategy
Reverse engineering mt4 ea
30 - 70 USD
Looking for someone to reverse/decompile my exe file, pls apply if this is something you can do and let me know how long this will take you to do will send the file to you once it’s something you seems to do
Hello, I am a serious buyer looking to acquire an existing, stable, and profitable Expert Advisor (EA) designed specifically for: 👉 Gold (XAUUSD) This is a full buyout request, including complete source code and full ownership. ⚠️ I am NOT looking to build a new EA from scratch. Only ready-made, proven systems with real performance history. ✅ EA Requirements (Strict) 📌 Symbol & Strategy ✔️ Trades Gold only (XAUUSD)
Required Filters are working as per specification and requirement . Stop Loss Trailing needs correct execution for live chart . Need a little advice on trailing stop loss correction . Live chart only
Projektdetails
Budget
30+ USD