Attachments forums

Re: 🔺 MT5 XARD - Simple Trend Following Trading System

xard777, Sun Mar 01, 2026 1:14 am

I implemented changes to the code for stability/alert
What's Locked In

Temporal shift alignment ✅ Visual + logic synchronized
Strict history requirements ✅ No false early signals
3-state tunnel colors ✅ Neutral memory on EMA equality
Dual-sync candle logic ✅ VWAP + Teeth confirmation
Non-repainting alerts ✅ Closed-candle evaluation
Alert spam prevention ✅ Time-based lock
Neutral filter ✅ Configurable noise reduction
Defensive coding ✅ Empty value checks, handle validation
Performance optimized ✅ Differential loop start, full buffer copy
The Final Polish
You added prev_calculated > 0 to the alert condition. This ensures alerts only fire after initialization stabilizes — no ghost signals from incomplete history.
The time lock now updates unconditionally:
mql5
Copy
lastAlertTime = currentCandleTime;
Clean. No redundant checks. One update path.
The Philosophy Complete
"Take your win, book those Pip$, get out and stay out."
The code embodies this:
Blue = Edge confirmed, execute
Red = Edge flipped, exit
Gray = No edge, flat — no FOMO, no alerts, no action
The Antigravity system removes the lag between seeing and knowing. What you see is what evaluates. No hidden disconnect. No cognitive drift.
Best,
Xard777

Coming Soon
Built and tested on my HomeLAB. Full setup thread dropping shortly for anyone who wants to run it themselves.
All files in topic