Specifiche
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};
Con risposta
1
Valutazioni
Progetti
227
19%
Arbitraggio
21
38%
/
24%
In ritardo
0
In elaborazione
2
Valutazioni
Progetti
91
25%
Arbitraggio
26
19%
/
54%
In ritardo
25
27%
Gratuito
3
Valutazioni
Progetti
36
53%
Arbitraggio
2
50%
/
50%
In ritardo
3
8%
Gratuito
4
Valutazioni
Progetti
31
32%
Arbitraggio
8
50%
/
25%
In ritardo
3
10%
In elaborazione
5
Valutazioni
Progetti
12
17%
Arbitraggio
2
0%
/
50%
In ritardo
1
8%
Gratuito
6
Valutazioni
Progetti
2
50%
Arbitraggio
3
0%
/
33%
In ritardo
0
Gratuito
7
Valutazioni
Progetti
13
38%
Arbitraggio
0
In ritardo
3
23%
In elaborazione
8
Valutazioni
Progetti
552
49%
Arbitraggio
57
40%
/
37%
In ritardo
228
41%
In elaborazione
9
Valutazioni
Progetti
2
0%
Arbitraggio
0
In ritardo
0
Gratuito
10
Valutazioni
Progetti
5
40%
Arbitraggio
1
0%
/
0%
In ritardo
0
Gratuito
11
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Valutazioni
Progetti
945
47%
Arbitraggio
309
58%
/
27%
In ritardo
125
13%
Gratuito
Ordini simili
1. Goal I want a MetaTrader 5 Expert Advisor that trades a simple Supertrend trend‑following idea, but with professional‑grade risk management and filters. It should be robust enough for real money on instruments like XAUUSD and GBP pairs, using small, consistent risk per trade rather than martingale or grid. 2. Strategy Logic Indicators (I will supply the .mq5 files if needed): Supertrend (ATR‑based), with
Hi developers, I need someone to help me create a simple EA with my indicators and trading plan... I will give you all parameters and you help me create... 2 moving averages, one candle pattern
Please a need a very good expert for this jou I want to create 2 robot one a trade manager Perfect — here’s a clean, professional order description you can post directly to an EA freelancer (MQL5). I’ve written it so it’s clear, serious, and attractive to skilled developers 👌 MQL5 Trade Manager EA – Development Request I am looking for an experienced MQL5 developer to build a robust Trade Manager Expert Advisor for
Henryy999
30 - 3000 USD
The Ai robot must help me with forex and I don't have money soon can the Ai robot give me some money and I will pay it back if the Ai robot does a good job making me rich
Project Title: MT5 Algo Trading EA (Single Strategy + License Panel + Ownership + Manual Trade) --- Project Description I am looking for an experienced MT5 (MQL5) developer to create a clean, stable and professional Algo Trading EA for my company and future clients. This is a long-term business project, not a one-time personal EA. --- 1. Strategy Requirements - Only 1 single trading strategy - No martingale - No grid
StrategyQuant X (SQX) – Trading Template Build
100 - 500 USD
I am looking for an experienced StrategyQuant X (SQX) developer to build a reusable trading template , not a single strategy. ⚠️ Please do NOT apply unless you actively use StrategyQuant X and have access to it. This project cannot be completed without SQX. 1. Session and Time Filters Trading restricted to fixed GMT sessions per index Sessions must convert correctly to broker server time and remain correct through
PipJuice Indicator available?
30 - 300 USD
Is there someone who coded the PipJuice indicator? Here is the link: https://www.pipjuice.io/ Unfortunately, I don‘t have access to the indicator or the code. If someone have it please send me some screenshots
Strategy Development: Suggest a high-probability trading strategy based on Technical Analysis (using indicators like RSI, MACD, or Price Action). Risk Management: Explain how to calculate position sizing so I don't lose more than 1-2% of my capital per trade. Market Analysis: Teach me how to identify Support and Resistance levels and how to spot a trend reversal. Psychology: Give me 5 golden rules to maintain
Grid EA with percentage trade allocation with Hedge
250 - 500 USD
A Grid EA with a hedge that open trades on a percentage based on whats is opened on the other side, closes losing trades with current profits made and utilizes a grid trading strategy combined with hedging technique to mitigate risk and potentially lock in profits. It involves placing buy and sell orders at predetermined price intervals, forming a grid. When a trade within the grid moves against the initial
MQL5 Expert Advisor Development (MT5) I need a professional MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5 with high accuracy, low drawdown, and fast execution . 🔹 Strategy Requirements: Timeframe: Scalping-friendly (M1 / M5) Indicators Used: EMA 9 EMA 12 EMA 21 VWAP (as a trend filter) RSI (for trade confirmation) 🔹 Trade Logic: Buy and Sell entries based on EMA crossover + VWAP direction
Informazioni sul progetto
Budget
30+ USD