GoldenCavalry X3D MT5 v2.0 Source Code
Pinned Free
Featured
MT5
Multi-core signals + adaptive Bollinger + four averaging modes + tail-order hedge + average trailing TP + tiered profit lock + multi-level risk + deep-blue custody panel. Good for ranging and long/short churn markets.
Details & Usage Instructions
Core Features
1. Multi-core Signal System (triple confluence)
Main signal: MA + RSI + MACD + candle confirmation, four factors scored, triggers at ≥3.
MA trend: 3 consecutive same-direction.
RSI reversal: buy on oversold rebound, sell on overbought pullback.
MACD golden/dead cross.
Candle confirmation: N consecutive bull/bear.
Adaptive Bollinger signal:
M1 Bollinger (20, 1.5) + M5 Bollinger (20, 2.0).
Price near upper band → short; near lower band → long.
Proximity threshold adjustable (default 0.25).
2. Four Averaging Modes
Martingale multiplier: first lot × multiplier^n.
Additive lot: first lot + increment × n.
Custom list: take lots sequentially from comma-separated list.
Fibonacci: increase by 1,1,2,3,5,8,13,21,34,55×.
3. Averaging Direction
Two-way: add both long and short.
Trend-following: only add same-direction as signal.
Counter-trend: only add opposite-direction as signal (default).
4. Averaging Spacing
Fixed points spacing.
ATR dynamic spacing: spacing = ATR × multiplier (default 0.8).
Spacing-increment multiplier adjustable.
5. Averaging Limits
Max single averaging lot.
Total lot cap.
Max averaging layers.
Max averaging per candle.
Averaging delay (seconds).
Averaging filter (optional).
6. Four Close Modes
Single-target TP: fixed profit amount per 0.01 lot.
Tiered TP: close in batches by target list (e.g. 0.3/0.6/1.0 close 50%/30%/20%).
Pullback TP: after profit hits trigger, close all on N% peak pullback.
7. Average Trailing TP
Fixed spacing: activation points + lock points.
ATR dynamic: lock distance = ATR × multiplier.
Stepped: lock tier by tier by step points.
Optional breakeven stop: after profit hits trigger points, SL moves above average.
8. Tiered TP Levels
Five tiers adjustable: 80/150/250/400/600 points.
Corresponding lock: 40/75/125/200/300 points.
Advance tier by tier, lock-only-never-loosen.
9. Tail-order Hedge
Triggers when first + last same-direction order combined P/L reaches threshold.
After peak pullback, close head and tail together.
Averaging blocked on that side while hedge active.
10. Net P/L Close-all
Starts after long+short combined net profit hits threshold.
Close all when net profit reaches 1.5× threshold, or on 10% peak pullback.
11. Average Hedge Close
When both long and short held, compute hedge profit by average-diff × min lot.
When hedge profit reaches 2× threshold, close half each side.
12. Risk System
Floating-loss close-all protection: close all when total floating loss hits threshold (default $300).
Signal close: RSI overbought close long, oversold close short.
Batch close: exit by ratio in batches.
Time close: max holding candles + daily timed close.
Equity drawdown monitor: real-time drawdown amount and %.
13. Time Filter
Timezone offset adjustable.
Trading-session limits.
Forbidden-session limits.
News filter (reserved).
Deep-blue Tech Panel
Title area
GoldenCavalry Multi-core Hedge Engine
GOLDEN CAVALRY · MULTI-CORE HEDGE v2.1
Cavalry advances · long and short both fall | Iron horses gallop · hedge a thousand troops
Symbol, magic, period, battle status
P/L area
Today's gain, yesterday's gain, cumulative gain (real-time color)
Account overview
Balance, equity, free margin, used margin
Margin ratio, leverage, trade count, win rate, profit factor
Position monitor
Long / short lots, P/L, average
Total P/L, total lots, net P/L
Long peak, short peak, net peak
Multi-core hedge
Long hedge status, short hedge status, net hedge status
Current TP type
Averaging monitor
Averaging mode, direction, count, spacing
Max lot, total-lot limit, max layers
Risk general
All-order floating P/L, drawdown amount, drawdown %
Mode, trailing stop, breakeven stop
Panel draggable (drag by border).
Suitable Market
Good for ranging and trend-alternating, long/short-churn markets.
Not for extreme one-sided, no-pullback, frequent-gap markets.
1. Multi-core Signal System (triple confluence)
Main signal: MA + RSI + MACD + candle confirmation, four factors scored, triggers at ≥3.
MA trend: 3 consecutive same-direction.
RSI reversal: buy on oversold rebound, sell on overbought pullback.
MACD golden/dead cross.
Candle confirmation: N consecutive bull/bear.
Adaptive Bollinger signal:
M1 Bollinger (20, 1.5) + M5 Bollinger (20, 2.0).
Price near upper band → short; near lower band → long.
Proximity threshold adjustable (default 0.25).
2. Four Averaging Modes
Martingale multiplier: first lot × multiplier^n.
Additive lot: first lot + increment × n.
Custom list: take lots sequentially from comma-separated list.
Fibonacci: increase by 1,1,2,3,5,8,13,21,34,55×.
3. Averaging Direction
Two-way: add both long and short.
Trend-following: only add same-direction as signal.
Counter-trend: only add opposite-direction as signal (default).
4. Averaging Spacing
Fixed points spacing.
ATR dynamic spacing: spacing = ATR × multiplier (default 0.8).
Spacing-increment multiplier adjustable.
5. Averaging Limits
Max single averaging lot.
Total lot cap.
Max averaging layers.
Max averaging per candle.
Averaging delay (seconds).
Averaging filter (optional).
6. Four Close Modes
Single-target TP: fixed profit amount per 0.01 lot.
Tiered TP: close in batches by target list (e.g. 0.3/0.6/1.0 close 50%/30%/20%).
Pullback TP: after profit hits trigger, close all on N% peak pullback.
7. Average Trailing TP
Fixed spacing: activation points + lock points.
ATR dynamic: lock distance = ATR × multiplier.
Stepped: lock tier by tier by step points.
Optional breakeven stop: after profit hits trigger points, SL moves above average.
8. Tiered TP Levels
Five tiers adjustable: 80/150/250/400/600 points.
Corresponding lock: 40/75/125/200/300 points.
Advance tier by tier, lock-only-never-loosen.
9. Tail-order Hedge
Triggers when first + last same-direction order combined P/L reaches threshold.
After peak pullback, close head and tail together.
Averaging blocked on that side while hedge active.
10. Net P/L Close-all
Starts after long+short combined net profit hits threshold.
Close all when net profit reaches 1.5× threshold, or on 10% peak pullback.
11. Average Hedge Close
When both long and short held, compute hedge profit by average-diff × min lot.
When hedge profit reaches 2× threshold, close half each side.
12. Risk System
Floating-loss close-all protection: close all when total floating loss hits threshold (default $300).
Signal close: RSI overbought close long, oversold close short.
Batch close: exit by ratio in batches.
Time close: max holding candles + daily timed close.
Equity drawdown monitor: real-time drawdown amount and %.
13. Time Filter
Timezone offset adjustable.
Trading-session limits.
Forbidden-session limits.
News filter (reserved).
Deep-blue Tech Panel
Title area
GoldenCavalry Multi-core Hedge Engine
GOLDEN CAVALRY · MULTI-CORE HEDGE v2.1
Cavalry advances · long and short both fall | Iron horses gallop · hedge a thousand troops
Symbol, magic, period, battle status
P/L area
Today's gain, yesterday's gain, cumulative gain (real-time color)
Account overview
Balance, equity, free margin, used margin
Margin ratio, leverage, trade count, win rate, profit factor
Position monitor
Long / short lots, P/L, average
Total P/L, total lots, net P/L
Long peak, short peak, net peak
Multi-core hedge
Long hedge status, short hedge status, net hedge status
Current TP type
Averaging monitor
Averaging mode, direction, count, spacing
Max lot, total-lot limit, max layers
Risk general
All-order floating P/L, drawdown amount, drawdown %
Mode, trailing stop, breakeven stop
Panel draggable (drag by border).
Suitable Market
Good for ranging and trend-alternating, long/short-churn markets.
Not for extreme one-sided, no-pullback, frequent-gap markets.

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.