XiangMa EA — Improved AMAZING Rebuild

XiangMa EA — Improved AMAZING Rebuild

Pinned Monthly Influencer MT5

AMAZING — those who know, know. XiangMa added some risk control on top of this core.

Views 905 Downloads 194 File 14.5 MB Updated 2026-10-07

Details & Usage Instructions

Shared by a member; you bear all gains and losses.

Progressive Risk-control System
Five-tier progressive risk control + three-level margin ladder defense + active reduction and daily P/L circuit-breaker, resolving risk from light to heavy.

01 🛡 Hedge Decompression
Trigger: one-side floating loss exceeds set value AND lot difference exceeds threshold.
Open reverse hedge orders by set ratio at fixed lot, slowing the one-side loss expansion. Hedge orders can use moving-entry to ensure best price.

02 🔒 Full Lock with Auto-unlock
Trigger: both long and short reach max order count AND lot difference< threshold. Judge reversal by RSI extreme (long trend RSI<25, short trend RSI>75); first close all profit orders, then use profit to close loss orders from farthest to nearest — "loss-free unlock".

03 💰 Hedge Unstick
Trigger: total orders > 20 AND long/short count diff< 5 AND overall floating loss < 200. Take the 10 most profitable and 10 most losing orders, accumulate loss seeking enough profit orders to cover, batch-close to unstick. Efficient when long/short near balance. 04 ⚖ One-side Self-unstick (profit offsets loss) Trigger: one-side orders >5 AND most-profit + most-loss order profit sum > 0.
Use the 1 most profitable order to "subsidize" the 2 most losing orders, closing the 3 together. Micro-level hedging that reduces exposure without new positions.

05 💼 Debt Repayment
Trigger: orders held > 120 min AND loss > 800 points counted as "debt".
Treat long-term loss orders as "debt", count 60% of excess daily earnings as "repayment income", use income to repay from the farthest (most losing) debt order. Income persisted via GlobalVariable, survives EA restart.

06 🧱 Tiered Margin Defense
Trigger: account maintenance margin ratio drops to L1 / L2 / L3 thresholds (default 2500% / 1800% / 1200%).
Three-tier defense: L1 pause averaging and reduce 20%; L2 forbid new first orders and raise reduction to 40%; L3 force close all. Optionally add "points-from-stop-out" as extra trigger.

07 ✂ Active Reduction & Global Breaker
Trigger: one-side floating loss % of balance exceeds set ratio OR daily P/L cap hit OR major trend reversal.
Active reduction cuts losing-side positions by ratio; daily P/L limit stops trading after set profit/loss; heaven-earth lock on trend reversal, unlock after profit reaches ATR multiple; counter-trend cut allows loss exit when size/trend changes.
Risk Warning:Resources on this site are for learning, research and technical exchange only, and do not constitute any investment advice. Before running any EA on any account, please do thorough forward-testing on a demo account first; no strategy can guarantee profits.