Manual Order Manager PRO XAU
- ユーティリティ
- バージョン: 1.15
- アクティベーション: 12
Operating principle
**Manual Order Manager PRO XAU** is an Expert Advisor for MetaTrader 5 developed to **automatically manage orders opened manually by the trader**.
The Expert Advisor (EA) doesn't choose when to buy or sell. The user analyzes the market, defines the direction and lot size, and opens the position. After that, the system monitors the operation and executes the configured protection rules.
The goal is to help the trader maintain more disciplined management, reducing the need to manually adjust Stop Loss, Break Even, and other protections throughout the operation.
Among the available functions are:
- Automatic application of Stop Loss and initial Take Profit; Break-even point with a small positive margin; - additional protection for operational costs; - Trailing stop adapted to volatility; - monitoring of MFE and MAE; - progressive profit protection; - partial closure; - managing multiple open positions; - Recovery Basket (optional); Optional Basket Break Even; - visual panel with position information; Detailed logs for further analysis.
The Expert Advisor (EA) only works on the chart symbol where it was installed. The GOLD version was specifically calibrated for GOLD trading.
Main advantages
**The trader remains in control:** the Expert Advisor (EA) does not generate signals nor decide whether to buy or sell. - **Automatic management after entry:** reduces the need to manually monitor each price movement. - **Progressive protection:** as the position evolves, the system can improve the level of protection. - **Volatility-based trailing:** uses ATR to adapt the stop distance to market behavior. - **Multiple order management:** allows you to track multiple positions of the same asset. - **Manual intervention respected:** the operator may modify or remove guards when their strategy requires it. - **Optional recovery strategies:** Recovery Basket and Basket Break Even can be enabled or completely disabled. - **Complete log:** logs help to understand what the EA did and why a particular action was performed. - **Internal timeframes defined by the system:** management does not depend on the visual timeframe selected in the chart. - **Suitable for testing and assisted manual operation:** It was developed to assist the trader, not to replace their analysis.
*** The EA respects the trader’s strategy: if the trader manually removes the Stop Loss or Take Profit, the system does not fight that decision. The initial SL is not automatically restored, and the TP remains removed unless the trader explicitly enables reapplication; profit-protection modules may act again only when the position returns to favorable conditions.
Safety Triggers for Recovery
The EA uses two specific batch sizes as manual triggers to activate its basket protection and recovery mechanisms.
Lot 0.02 — Recovery Basket: When there is a lost basket with at least two eligible positions, manually opening a new 0.02 lot position in the opposite direction can activate Recovery Basket mode.
After activation, the EA will monitor the basket's positions in a consolidated manner, including existing eligible positions and new positions incorporated into the recovery. The basket can only be closed when the estimated consolidated net result is positive and reaches the configured target, considering estimated exit costs, commissions, slippage reserve, and an additional safety buffer.
The system is not designed to automatically close the Recovery Basket with a net result of zero or negative.
Lot 0.01 — Basket Break Even: Manually opening a new 0.01 lot position in the same direction as an existing eligible position may activate Basket Break Even mode.
This mode was developed to treat a pressured basket of positions in the same direction as a single management structure. While active, certain individual profit management actions are suspended for the basket members, and the EA prioritizes consolidated protection of the entire basket, including fixed protection at Break Even when its conditions are met.
Automatic basket closing also requires a positive net result after considering estimated costs and the configured safety buffer.
The two protection mechanisms are mutually exclusive : only one basket strategy can remain active at a time.
Lots 0.02 and 0.01 function as manual activation commands for their respective strategies. They do not represent martingale, and the EA does not automatically open these trigger orders.
The trigger batch sizes and other protection parameters can be adjusted in the EA input parameters.
*** The lot sizes used as triggers for the strategies can be customized by the trader: change RECOVERY_TRIGGER_LOT to define the lot size that activates the Recovery Basket — for example, 0.03 will trigger an order of 0.03 in the opposite direction — and change BASKET_BE_TRIGGER_LOT to define the lot size that activates the Basket Break Even — for example, 0.05 will trigger a new order of 0.05 in the same direction , provided that the other conditions of the strategy are met.
--- *** To customize the EA parameters, open the EA properties in MetaTrader 5 by pressing F7 or Alt+X , go to the Inputs tab, adjust the desired values, and click OK .
Input parameters
General Management
- **MANAGE_ONLY_CHART_SYMBOL** — when enabled, the EA manages only the chart asset where it is installed. - **MANAGE_MODE** — defines which positions can be managed by the EA. - **MANUAL_MAGIC** — magic number used to identify manual orders or specific groups. - **MANAGED_MAGIC_LIST** — optional list of authorized Magics.
### Stop Loss and Initial Take Profit
- **APPLY_INITIAL_SL_IF_MISSING** — enables or disables the automatic application of the initial Stop Loss. - **INITIAL_SL_PCT** — percentage distance from the initial Stop Loss. - **APPLY_INITIAL_TP** — enables or disables initial Take Profit. - **INITIAL_TP_PCT** — percentage difference from the initial Take Profit. - **ALLOW_INITIAL_SL_BROKER_ADJUST** — allows minor adjustments necessary to comply with the broker's rules.
Break Even
- **BE_TRIGGER_PCT** — percentage profit required to trigger the break-even point. - **BE_LOCK_PCT** — positive percentage that EA tries to preserve after the Break Even.
Cost protection
- **COST_BUFFER_TRIGGER_PCT** — profit required to initiate additional cost protection. - **COST_BUFFER_PCT** — protection margin used to help cover spread, commission and other costs.
Protection by time
- **LOCK_AFTER_MIN** — minimum time, in minutes, before additional time-based protection. - **LOCK_30M_PCT** — percentage of protection used by the time lock module.
### Trailing Stop
- **TRAIL_START_PCT** — minimum profit required to start the trailing campaign. - **TRAIL_MIN_PCT** — minimum percentage distance of the trail. - **TRAIL_ATR_PERIOD** — period used in the ATR calculation. - **TRAIL_ATR_K** — ATR multiplier used to define the dynamic stopping distance.
MFE Profit Guard
- **MFE_START_PCT** — minimum movement required to initiate protection based on the best profit achieved. - **MFE_LEVEL_2_PCT** — second level of position evolution. - **MFE_LEVEL_3_PCT** — third level. - **MFE_LEVEL_4_PCT** — fourth level. - **MFE_LOCK_RATIO_1 to MFE_LOCK_RATIO_4** — defines how much of the best position advance should be converted into protection at each stage.
Regression and partial closure
- **REGRESSION_TRIGGER_COUNT** — number of regressions required before partial closure. - **PARTIAL_CLOSE_PCT** — percentage of the position that will be closed. - **REGRESSION_NEAR_LEVEL_PCT** — distance used to consider that the price has returned to the protection region. - **REGRESSION_REARM_DISTANCE_PCT** — distance required to reset a new regression count. - **REGRESSION_MIN_SECONDS_BETWEEN** — minimum interval between two valid regressions. - **POST_PARTIAL_REARM_PCT** — distance used to rearm the logic after a partial shutdown. - **POST_PARTIAL_EXIT_NEAR_PCT** — proximity of the protection used in managing the remaining position.
Time Stop and Failsafe
- **TIME_STOP_MIN** — time used by the extended position management module. - **TIME_STOP_CLOSE_ON_WEAKNESS** — allows or disallows automatic shutdown due to weakness after the defined time. - **DURATION_FAILSAFE_MIN** — additional safety module duration. - **FAILSAFE_CLOSE_IF_PROFIT** — defines whether failsafe can automatically close a positive position.
Recovery Basket
- **RECOVERY_BASKET_MODE** — controls the Recovery Basket module: - `RBM_OFF` — disabled; - `RBM_MONITOR_ONLY` — only monitors and logs; - `RBM_ACTIVE` — active management. - **RECOVERY_TRIGGER_LOT** — lot used as the trigger for the strategy. - **RECOVERY_TARGET_BALANCE_PCT** — positive basket target based on a percentage of the balance. - **RECOVERY_MIN_NET_PROFIT_MONEY** — minimum required net profit. - **RECOVERY_CLOSE_SAFETY_BUFFER_MONEY** — additional safety margin for closing. - **RECOVERY_EXIT_SLIPPAGE_RESERVE_PCT** — reservation used to account for possible slippage at checkout.
When the Recovery Basket is set to `RBM_OFF`, the lot size configured as the trigger can be used normally by the trader.
### Basket Break Even
- **BASKET_BE_MODE** — controls Basket Break Even: - `BBE_OFF` — disabled; - `BBE_MONITOR_ONLY` — monitors only; - `BBE_ACTIVE` — active management. - **BASKET_BE_TRIGGER_BY_LOT_ENABLED** — allows or disallows batch activation. - **BASKET_BE_TRIGGER_LOT** — batch used as a trigger. - **BASKET_BE_POSITION_BE_TRIGGER_PCT** — profit required to apply the fixed Break Even rate to a basket position. - **BASKET_BE_TARGET_MONEY** — target monetary value of the basket when configured in this mode. - **BASKET_BE_TARGET_BALANCE_PCT** — alternative target based on balance. - **BASKET_BE_MIN_POSITIVE_MONEY** — minimum positive value required. - **BASKET_BE_CLOSE_SAFETY_BUFFER_MONEY** — additional margin before closing. - **BASKET_BE_EXIT_SLIPPAGE_RESERVE_PCT** — reservation for possible execution discrepancies.
When `BASKET_BE_MODE = BBE_OFF`, the batch configured as a trigger functions like a normal batch.
Logs and dashboard
- **ENABLE_EXPERT_PRINT** — enables messages in the Experts/Journal section of MT5. - **ENABLE_TEXT_LOG** — enables text-based log logging. - **ENABLE_CSV_AUDIT** — enables CSV audit file. - **TIMER_SECONDS** — update interval for the main management routine.
---
**Important:** This Expert Advisor is an order management tool. It does not provide buy or sell signals and does not guarantee financial results. The decision regarding entry, direction, position size, and risk remains the trader's responsibility.
Safety Triggers for Recovery
The EA uses two specific batch sizes as manual triggers to activate its basket protection and recovery mechanisms.
Lot 0.02 — Recovery Basket: When there is a lost basket with at least two eligible positions, manually opening a new 0.02 lot position in the opposite direction can activate Recovery Basket mode.
After activation, the EA will monitor the basket's positions in a consolidated manner, including existing eligible positions and new positions incorporated into the recovery. The basket can only be closed when the estimated consolidated net result is positive and reaches the configured target, considering estimated exit costs, commissions, slippage reserve, and an additional safety buffer.
The system is not designed to automatically close the Recovery Basket with a net result of zero or negative.
Lot 0.01 — Basket Break Even: Manually opening a new 0.01 lot position in the same direction as an existing eligible position may activate Basket Break Even mode.
This mode was developed to treat a pressured basket of positions in the same direction as a single management structure. While active, certain individual profit management actions are suspended for the basket members, and the EA prioritizes consolidated protection of the entire basket, including fixed protection at Break Even when its conditions are met.
Automatic basket closing also requires a positive net result after considering estimated costs and the configured safety buffer.
The two protection mechanisms are mutually exclusive : only one basket strategy can remain active at a time.
Lots 0.02 and 0.01 function as manual activation commands for their respective strategies. They do not represent martingale, and the EA does not automatically open these trigger orders.
The trigger batch sizes and other protection parameters can be adjusted in the EA input parameters.
*** The lot sizes used as triggers for the strategies can be customized by the trader: change RECOVERY_TRIGGER_LOT to define the lot size that activates the Recovery Basket — for example, 0.03 will trigger an order of 0.03 in the opposite direction — and change BASKET_BE_TRIGGER_LOT to define the lot size that activates the Basket Break Even — for example, 0.05 will trigger a new order of 0.05 in the same direction , provided that the other conditions of the strategy are met.

