명시
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};
응답함
1
등급
프로젝트
227
19%
중재
21
38%
/
24%
기한 초과
0
작업중
2
등급
프로젝트
91
25%
중재
26
19%
/
54%
기한 초과
25
27%
무료
3
등급
프로젝트
36
53%
중재
2
50%
/
50%
기한 초과
3
8%
무료
4
등급
프로젝트
31
32%
중재
8
50%
/
25%
기한 초과
3
10%
작업중
5
등급
프로젝트
12
17%
중재
2
0%
/
50%
기한 초과
1
8%
무료
6
등급
프로젝트
2
50%
중재
3
0%
/
33%
기한 초과
0
무료
7
등급
프로젝트
14
43%
중재
0
기한 초과
3
21%
무료
8
등급
프로젝트
552
49%
중재
57
40%
/
37%
기한 초과
228
41%
작업중
9
등급
프로젝트
2
0%
중재
0
기한 초과
0
무료
10
등급
프로젝트
5
40%
중재
1
0%
/
0%
기한 초과
0
무료
11
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
12
등급
프로젝트
945
47%
중재
309
58%
/
27%
기한 초과
125
13%
무료
비슷한 주문
Robot Requirements Specification
30 - 100 USD
step by step and structure this into a full IEEE 830 / ISO/IEC/IEEE 29148 style Requirements Specification. This format will include: Introduction System Overview Functional and Performance Requirements Traceability Matrix (linking requirements to test cases) Verification and Validation Compliance Standards 1. Introduction 1.1 Purpose The purpose of this document is to define the technical requirements for the
Ninjatrader strategy develop
30+ USD
i need an expert to help join 3 model i have in ninjatrader into one, kindly message me and i will be expecting from you and i need this work done in maximum of 4 days, so i need expert that can get it done
I want an EA that work with my support and resistance indicator. Buy entry condition are: 1. hen candlestick closes in side the support bar. 2. When candlestick break above resistance bar. Likewise sell condition: 1. When candlestick closes inside the resistance bar, 2. When candlestick break below support bar
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
프로젝트 정보
예산
30+ USD