Re: 🔺 MT5 XARD - Simple Trend Following Trading System

1591
Okay, I used Antigravity, where I have the current Gemini Pro model . Test these basic statistics of average distance in points to see if they make sense. If anyone finds any errors and is willing to correct them, feel free to do so. If any statistics are missing increase history range in the indicator.
Claude Opus 4.5 fix

Code: Select all

Explanation of the Statistics Calculation Fix
The Problem
The original code had flags that prevented accurate counting of transitions between semaphores:

mq5
bool S4_Processed_For_OpS4 = false;
bool S3_Processed_For_OpS3 = false;
These flags were set to true after the first opposite transition was counted, and only reset when a new signal appeared. This caused a bug:

Example scenario:

Say you have the sequence: S4 Low → S4 High → S4 Low → S4 High
The old code would only count the first S4 Low → S4 High transition
The subsequent S4 High → S4 Low → S4 High transitions were incorrectly skipped
The Fix
I removed the unnecessary flags S4_Processed_For_OpS4 and S3_Processed_For_OpS3. Now:

Statistic	What it counts
S4 → Op S4	Every transition from S4 Low → S4 High (UP) or S4 High → S4 Low (DN)
S3 → Op S3	Every transition from S3 Low → S3 High (UP) or S3 High → S3 Low (DN)
What Remained Unchanged
The flag S4_Processed_For_OpS3 was kept because it has a different purpose:

For the "S4 → Op S3" statistic, we only want to count the first opposite S3 signal after each S4
Not every S3 signal between two S4 signals
Result
The average points calculation is now correct because:

All completed moves between opposite signals are counted
OK i have enough of AI "coding" for today have fun fixing code :sweat:
These users thanked the author Vetis for the post (total 3):
WN25, ramsdac, eduarescobar
Rating: 1.8%


Re: 🔺 MT5 XARD - Simple Trend Following Trading System

1592
I changed it to a percentage for the current move to make it easier to read, but someone who knows coding and is willing to do it for free will still have to check if the average calculations are correct. Maybe someone will check it someday. I'm posting the code below. Or maybe someone has a completely different idea on how to improve the Xard system, and it's not worth continuing what I've done. Everyone has to judge that for themselves.

These users thanked the author Vetis for the post (total 3):
WN25, ramsdac, eduarescobar
Rating: 1.8%

Re: 🔺 MT5 XARD - Simple Trend Following Trading System

1593
[UPDATE] -- XU v040-MT5-Build 5430-Setup

The busy Months (Feb, Mar & Apr) are here
It's time to hunker down and focus on our trading

Lately, I have been switching my trading strategy away from Patterns and into POC (Point of Control) trading
I still use Semaphores for my roadmap context and POC for my actual trading
The files enclosed include source -- The XARD UNIVERSE is now Open

Best,
Xard777
PS I hope you all make a boat load of Pip$

Five people d/l before I could fix the template -- just d/l again and it should work
These users thanked the author xard777 for the post (total 9):
budhi1976, Nabs, Pelle, TriThep, ramsdac, mazibee, Vetis, Cagliostro, rei
Rating: 5.3%
XARD: If Carlsberg made charts... Probably the best charts in the world

Re: 🔺 MT5 XARD - Simple Trend Following Trading System

1594
xard777 wrote: Wed Jan 28, 2026 1:16 am "Unplug From the Chaos, Plug Into the Flow"

The next 90 days are ours — time to lock in, eliminate the noise, and trade with absolute intention.
Kicking things off with the fresh Xard Universe build for MT5 Build 5430.

We're going full throwback mode: if it ain't broke, don't fix it. No clutter, no over-engineering — just pure price action that prints.

The Setup:
  • Colored Heiken Ashi candles for instant directional bias
  • High/Low EMA lines defining your path of least resistance
  • Clean directional play without the headache
  • Old school mechanics, modern precision. It's intuitive, it's fast, and honestly? It's a blast to trade.
Study the flow. Trust the colours. Let's make those Pip$ people.

3 Markets (BTCUSD, WS30 & XAUUSD), 3 TFs H1, M15 & M4, Nine charts in total displayed on 4K 65" TV
There is nothing stopping you from doing the same -- no more TF changes -- just trade what you see.

Best
Xard777

PS yes I know it says Activate Windows -- Will d/l a watermark remover over the weekend :D
PPS additional histograms of the HA HLEMA can also be added here post1295579502.html#p1295579502
If you require MT5 Build 5430 -- post1295579223.html#p1295579223
hello, just loaded the template and it is showing blank. see the attachment.