指定
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
等级
项目
263
22%
仲裁
23
52%
/
17%
逾期
0
工作中
2
等级
项目
91
25%
仲裁
26
19%
/
54%
逾期
25
27%
空闲
3
等级
项目
38
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
等级
项目
553
50%
仲裁
57
40%
/
37%
逾期
227
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%
空闲
相似订单
A robot
50+ USD
HIGH-FREQUENCY M5/M15 CONCURRENT ENTRY SNIPER import time class HighFrequencySniper: def __init__(self): self.target_profit = 25.00 # Targeted Delta Move self.max_execution_time = 3600 # 1 Hour Sandbox (Seconds) self.lot_allocation = "CALIBRATED_TO_RISK" def execute_hft_scan(self, current_price, m5_rsi, m15_order_block): print(f"[SCANNING] Current Kernel Metric: ${current_price:.2f
# HIGH-FREQUENCY M5/M15 CONCURRENT ENTRY SNIPER import time class HighFrequencySniper: def __init__(self): self.target_profit = 25.00 # Targeted Delta Move self.max_execution_time = 3600 # 1 Hour Sandbox (Seconds) self.lot_allocation = "CALIBRATED_TO_RISK" def execute_hft_scan(self, current_price, m5_rsi, m15_order_block): print(f"[SCANNING] Current Kernel Metric: ${current_price:.2f}")
I need a trading bot, please i need this project urgently and when messaing me kindly send me samples of past works and dont forget i need the project to be done as soon as possible
If you have good Market structure indicators with buffer no repaint internal structure and external structure etc good market structure if you have then i already have ea you have to input into the indicator soy current ea opens position based on the market structure
*Need an MQL5 EA for MT5 to trade gold and forex automatically. Must include Stop Loss, Take Profit, and basic risk management. Budget is $30 to $50. Looking for clean, stable code that works on VPS.*
MT5 EA Development / Enhancement
50 - 100 USD
Hello Developers, I am looking for an experienced MQL5 developer to complete the development of a custom MetaTrader 5 Expert Advisor (EA) based on my proprietary trading strategy. I already have a partially developed EA that includes the required custom indicators and part of the trading logic. The project can either be completed by modifying the existing EA or, if more appropriate, by rebuilding it from scratch
Description: I need an experienced MQL5 developer to build a professional MT5 Expert Advisor for XAU/USD based on my trading strategy. I require the full .mq5 source code and the compiled file. Trading Logic: Timeframes: H4 to determine overall direction, H1 for supply and demand zones, M15 for trade entries. Buy conditions: H4 trend is bullish, price reaches a valid H1 demand zone, liquidity sweep occurs below the
WORKING EA
35+ USD
I Need an existing proven profitable EA. EA should have at least 3 months track record of consistency. My budget is $35 and nothing more. If you do not have the working EA for that amount, please do not apply. I'm not paying a dime more. Again do not apply if you are not willing to take the above amount
Standby Description . Prop Firm Environment . ( Monitor Execution and Handling Environment Changes as Required ) . Technical Issues . Delete extra lines of code (Clean Code , Folder) . Asset related translation , no need for Logic Alteration
Only Technical Issues . Familiarization to Different Symbols . [Again Technical Assistance Only] . Deleting extra lines of code , Not Required Folders (Clean Code) . No Need for Logic Alteration (Strictly)
项目信息
预算
30+ USD