GoldVein Grid EA v3.2 MT5 Source Code (Updates Supported)
Lifetime
In-house
MT5v3.2
Two-way pending-order tracking grid + tiered spacing + head/tail hedge + dollar TP + dollar lock. Good for ranging and pullback markets.
Details & Usage Instructions
Contact me for help if you can't edit or use it.
GoldVein Grid is an MT5 smart grid trading system.
Lays the grid via pending-order tracking (BuyStop / SellStop); fills on breakout.
Supports lot-multiplier / custom-lot-list modes; grid spacing switches between two tiers dynamically.
Built-in one-side TP, total TP, time stop, head/tail hedge, net P/L close-all, dollar lock — multi-layer risk, good for markets alternating range and trend.
Core Features
1. Pending-order Tracking Grid
Doesn't open at market; uses BuyStop / SellStop to build the grid.
Order price moves with current price; auto-rewrites at trailing step.
First-order distance, first-tier spacing, second-tier spacing set separately.
After order count passes threshold, auto-switch to second-tier params.
2. Tiered Grid Spacing
First tier: used when orders< threshold (default 80 / 80 points). Second tier: used when orders ≥ threshold (default 30 / 90 points). Threshold adjustable, default 7 orders. 3. Two Lot Modes Multiplier: first lot × averaging-multiplier^n, with max-lot cap. Custom list: take lots sequentially from a comma-separated list; stop averaging when exhausted. 4. Multi-level TP/SL One-side TP: close that whole side when either side's profit hits a set dollar amount. One-side SL: close that whole side when either side's loss hits a set dollar amount. Total TP: close all when long+short combined profit hits a set dollar amount. Time stop: close that whole side when first order exceeds timeout and is in floating loss (optional). Net P/L close-all: after net profit hits threshold, close all at 1.5~2.4×, or on 20% peak pullback. 5. Head/Tail Hedge Triggers when first + last same-direction order combined profit reaches an ATR multiple. After peak pullback reaches set ratio, close head and tail orders together. 6. Dollar Lock When absolute net floating profit hits threshold, auto-open reverse lock orders. Confirmation distance prevents false triggers. When price returns to the lock entry, auto-unlock and resume grid. 7. Trailing Stop Four modes: candle / fractal / fixed-points / adaptive. Adaptive mode auto-switches by trend strength. Starts only after profit target; advances only in favorable direction. 8. Trading Sessions Allow-trading start / end time. Auto-detect instrument session; delete pendings when market closed.
GoldVein Grid is an MT5 smart grid trading system.
Lays the grid via pending-order tracking (BuyStop / SellStop); fills on breakout.
Supports lot-multiplier / custom-lot-list modes; grid spacing switches between two tiers dynamically.
Built-in one-side TP, total TP, time stop, head/tail hedge, net P/L close-all, dollar lock — multi-layer risk, good for markets alternating range and trend.
Core Features
1. Pending-order Tracking Grid
Doesn't open at market; uses BuyStop / SellStop to build the grid.
Order price moves with current price; auto-rewrites at trailing step.
First-order distance, first-tier spacing, second-tier spacing set separately.
After order count passes threshold, auto-switch to second-tier params.
2. Tiered Grid Spacing
First tier: used when orders< threshold (default 80 / 80 points). Second tier: used when orders ≥ threshold (default 30 / 90 points). Threshold adjustable, default 7 orders. 3. Two Lot Modes Multiplier: first lot × averaging-multiplier^n, with max-lot cap. Custom list: take lots sequentially from a comma-separated list; stop averaging when exhausted. 4. Multi-level TP/SL One-side TP: close that whole side when either side's profit hits a set dollar amount. One-side SL: close that whole side when either side's loss hits a set dollar amount. Total TP: close all when long+short combined profit hits a set dollar amount. Time stop: close that whole side when first order exceeds timeout and is in floating loss (optional). Net P/L close-all: after net profit hits threshold, close all at 1.5~2.4×, or on 20% peak pullback. 5. Head/Tail Hedge Triggers when first + last same-direction order combined profit reaches an ATR multiple. After peak pullback reaches set ratio, close head and tail orders together. 6. Dollar Lock When absolute net floating profit hits threshold, auto-open reverse lock orders. Confirmation distance prevents false triggers. When price returns to the lock entry, auto-unlock and resume grid. 7. Trailing Stop Four modes: candle / fractal / fixed-points / adaptive. Adaptive mode auto-switches by trend strength. Starts only after profit target; advances only in favorable direction. 8. Trading Sessions Allow-trading start / end time. Auto-detect instrument session; delete pendings when market closed.

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.