GodOfWealth EA · Unstick-filter Edition MT5 Source Code

GodOfWealth EA · Unstick-filter Edition MT5 Source Code

Pinned Monthly Featured MT5v1.2

Two-way grid + counter-trend averaging + fixed TP + ATR dynamic spacing + same-direction high/low hedge unstick + 7-order protection + Mario trend filter + session control. Good for ranging and pullback markets.

Views 797 Downloads 166 File 74.6 KB Updated 2026-10-07

Details & Usage Instructions

Product Intro
GodOfWealth EA is an MT5 two-way grid trading system.
Long/short run independently; counter-trend averaging lowers the average; fixed TP exits the whole group.
Built-in same-direction high/low hedge unstick, 7-order protection, Mario trend filter, ATR dynamic spacing, trend/range filter, pre-close TP, protection-side auto-TP — multi-layer mechanisms, good for markets alternating range and trend.

Core Features
1. Two-way Grid Trading
Long-only, short-only, or both.
Counter-trend lot supports custom list or multiplier (first lot × averaging-multiplier^n).
Max counter-trend averaging count configurable (default 168).
Long TP coefficient and short TP coefficient set independently (default 130 points each).

2. Fixed Total TP
TP posted by direction average + TP coefficient.
Auto-close after target, no manual intervention.
Long or short TP can be turned off separately.

3. ATR Dynamic Spacing
Averaging spacing no longer fixed; computed dynamically as ATR × multiplier.
Max / min spacing points configurable, preventing too wide or too narrow.
Good for instruments with changing volatility.

4. Trend/Range Filter (controls unstick)
Uses ADX to judge trend vs range.
ADX ≥ threshold (default 25) → trend → disable unstick, avoid catching knives in trends.
ADX< threshold → range → enable unstick, good for range churn. Computed once per candle, minimal overhead. 5. Same-direction High/Low Hedge Unstick Enabled after one-side positions reach min count (default 10). Find the most profitable and most losing same-direction orders. Compute the two orders' combined average P/L points. When threshold reached (default 130 points), close the two together. After closing, re-open one order at the loss order's lot to keep grid structure. If refill fails, original grid is not broken. 6. 7-order Protection Mode Triggers when long/short order-count difference hits threshold (default 7). Auto-identify "protected side" and "protection side". When protected side hits TP points, close the whole group. Protection-side follow-close (optional): when protected-side realized profit + protection-side floating profit ≥ -max acceptable net loss, close all positions. Abandon follow when loss exceeds limit, don't force-close. 7. Mario Trend Filter Uses the ratio R of candle body to amplitude to judge trend vs range. When dominant-direction body ratio is high and reverse tolerance low → trend → forbid averaging. Filters out needless averaging in trends. 8. Protection-side Auto-TP When protection-side layer count hits threshold → auto-close protection side, exit protection mode. When protection-side total lots hit threshold → also trigger. Lets the protection side take profit timely, avoiding being trapped. 9. Trading Sessions & Pre-close Set start / end time per weekday (Beijing time). Pre-close check floating loss N minutes before close. When floating loss < threshold (default 100), close all and pause EA. Resume automatically at next session start. 10. Underlying Risk Control Account-binding limit (optional). Usage-time limit (optional). Historical max floating loss, today's max floating loss, historical total profit, today's profit on panel. Panel Expiry time, long count / lots / P/L / cost Short count / lots / P/L / cost Total lots, total P/L, account balance Historical max floating loss, today's max floating loss Historical total profit, today's profit ATR dynamic-spacing module (shows current ATR, dynamic spacing, multiplier, limits when on/off) Pause status and resume time Buttons: one-click close long, close short, close all Suitable Market Good for ranging markets and trending markets with pullbacks. Not for strong one-sided, no-pullback, frequent-gap extreme markets.

1.jpg

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.