GoldenQilin MT5 4.0 Balanced Source Code
Pinned Free
Influencer
MT5v4.0
Multi-timeframe, dynamic grid, liquidity-zone orders, equity compounding and risk-controlled EA.
Details & Usage Instructions
1. Multi-timeframe Trend Scoring
Based on M1 / M5 / M15, combines ADX, Bollinger, ATR, EMA, RSI and MACD to compute trend strength and direction in real time, outputting a trend score from -100 to +100.
Auto-switches between "range mode" and "trend mode" by score, dynamically adjusting grid spacing and martingale multiplier.
2. Dynamic Grid + Asymmetric Averaging
Grid spacing adapts via ATR — tightens in ranges, widens in trends.
Martingale multiplier varies with trend strength: high in ranges, low in trends, to prevent one-sided blow-up.
Lot scales by equity compounding — grows with account, shrinks on drawdown.
3. Liquidity-zone Orders
Auto-detects prior highs/lows on M1 / M5 / M15 / H1 / D1 as key anchors.
Places multi-level BuyStop / SellStop near key levels; larger size on the breakout side, smaller on the rebound side — an asymmetric order structure.
Supports false-break tracking: when price crosses the trigger band, opposite-side orders auto-shift.
4. Multi-level Take-profit
Quick scalping: close a single position immediately on a small profit to speed up capital turnover.
Average TP: close by direction average + target points.
Basket trailing TP: after overall profit hits target, start trailing; close all on pullback.
First-order trailing TP: when only one order per direction, trail and close on pullback after profit target.
5. Multi-layer Risk Control
Max net exposure limit (|long lots - short lots|)
Max orders per side
Max single order size
Spread limit
Pause before/after news
Early close on Friday
Daily profit target lock
Equity risk control (optional)
Panel
Real-time trend score, market state, position details, P/L, spread, margin level.
One-click stop / resume trading, close all and pause.
Collapsible panel adapts to different chart widths.
Suitable Market
Good for markets alternating between ranging and trending with pullbacks.
Not for extreme one-sided, frequent-gap, illiquid instruments.
Risk Warning
This EA is a composite of grid + martingale + trend filter, carrying significant drawdown risk.
Set lots, layers and risk params reasonably; simulate first; no profit guarantee.
Based on M1 / M5 / M15, combines ADX, Bollinger, ATR, EMA, RSI and MACD to compute trend strength and direction in real time, outputting a trend score from -100 to +100.
Auto-switches between "range mode" and "trend mode" by score, dynamically adjusting grid spacing and martingale multiplier.
2. Dynamic Grid + Asymmetric Averaging
Grid spacing adapts via ATR — tightens in ranges, widens in trends.
Martingale multiplier varies with trend strength: high in ranges, low in trends, to prevent one-sided blow-up.
Lot scales by equity compounding — grows with account, shrinks on drawdown.
3. Liquidity-zone Orders
Auto-detects prior highs/lows on M1 / M5 / M15 / H1 / D1 as key anchors.
Places multi-level BuyStop / SellStop near key levels; larger size on the breakout side, smaller on the rebound side — an asymmetric order structure.
Supports false-break tracking: when price crosses the trigger band, opposite-side orders auto-shift.
4. Multi-level Take-profit
Quick scalping: close a single position immediately on a small profit to speed up capital turnover.
Average TP: close by direction average + target points.
Basket trailing TP: after overall profit hits target, start trailing; close all on pullback.
First-order trailing TP: when only one order per direction, trail and close on pullback after profit target.
5. Multi-layer Risk Control
Max net exposure limit (|long lots - short lots|)
Max orders per side
Max single order size
Spread limit
Pause before/after news
Early close on Friday
Daily profit target lock
Equity risk control (optional)
Panel
Real-time trend score, market state, position details, P/L, spread, margin level.
One-click stop / resume trading, close all and pause.
Collapsible panel adapts to different chart widths.
Suitable Market
Good for markets alternating between ranging and trending with pullbacks.
Not for extreme one-sided, frequent-gap, illiquid instruments.
Risk Warning
This EA is a composite of grid + martingale + trend filter, carrying significant drawdown risk.
Set lots, layers and risk params reasonably; simulate first; no profit guarantee.


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.