Re: 🔺 MT5 XARD - Simple Trend Following Trading System

711
chris006 wrote: Tue Aug 19, 2025 6:40 am Made a customised version of Panel1 - corrected ADR% calculation. Also:
  • automatic decimals in price,
  • bidratio calculation,
  • yesterday bidratio (yesterday high and low) vs today price (=breakout of yesterday high or low)
  • today range vs average ADR
I like your New Panel 8-18-25! But it seems to cancel the functioning of XardFX 16.
I also nothiced that the Panel controls the large number on the main screen. I have two charts running on one screen and the large number many times obscures the price action. Is there a way to eliminate the numer, since it is also in the Panel? Or maybe just a button to remove it temporarily?


Re: 🔺 MT5 XARD - Simple Trend Following Trading System

712
Thanks for the comments Shockr. As of today I am away from computer, on holiday. I will see what I can do next week when I return.
Shockr wrote: Wed Aug 20, 2025 2:41 am I like your New Panel 8-18-25! But it seems to cancel the functioning of XardFX 16.
I also nothiced that the Panel controls the large number on the main screen. I have two charts running on one screen and the large number many times obscures the price action. Is there a way to eliminate the numer, since it is also in the Panel? Or maybe just a button to remove it temporarily?

Re: 🔺 MT5 XARD - Simple Trend Following Trading System

713
RE: Changing the ADR settings in the Panel back to their original setting.
Best,
Xard777

Here is the code...

Code: Select all

static double cachedAdrAvg = 0.0;
   static double cachedYestAvg = 0.0;
   static int lastDailyBars = 0;
   int currDailyBars = iBars(symbol, PERIOD_D1);
   if (cachedAdrAvg == 0.0 || currDailyBars > lastDailyBars)
   {
      double sum1 = 0, sum5 = 0, sum10 = 0, sum20 = 0;
      int cnt1 = 0, cnt5 = 0, cnt10 = 0, cnt20 = 0;
      int maxBars = MathMin(Bars(symbol, PERIOD_D1), BarsCount);
      int maxD = MathMin(20, maxBars - 1);
      for (int i = 1; i <= maxD; i++)
      {
         double r = iHigh(symbol, PERIOD_D1, i) - iLow(symbol, PERIOD_D1, i);
         sum20 += r; cnt20++;
         if (i <= 10) { sum10 += r; cnt10++; }
         if (i <= 5) { sum5 += r; cnt5++; }
         if (i <= 1) { sum1 += r; cnt1++; }
      }
      double adr1 = (cnt1 > 0) ? sum1 / cnt1 : 0;
      double adr5 = (cnt5 > 0) ? sum5 / cnt5 : 0;
      double adr10 = (cnt10 > 0) ? sum10 / cnt10 : 0;
      double adr20 = (cnt20 > 0) ? sum20 / cnt20 : 0;
      double adrAvgRaw = (adr1 + adr5 + adr10 + adr20) / 4;
      cachedAdrAvg = adrAvgRaw * pipsize;
      cachedYestAvg = (iHigh(symbol, PERIOD_D1, 1) - iLow(symbol, PERIOD_D1, 1)) * pipsize;
      lastDailyBars = currDailyBars;
      if (DebugWithSquealers) Print("SQUEALER: Cached ADR Update - New Daily Bars: ", currDailyBars, ", ADR Avg: ", cachedAdrAvg, ", Yest Avg: ", cachedYestAvg);
   }
   double adrAvg = cachedAdrAvg;
   double yestAvg = cachedYestAvg;
   if (DebugWithSquealers) Print("SQUEALER: 20 Day Range - Raw Avg: ", adrAvg / pipsize, ", Pipsize: ", pipsize, ", Result: ", adrAvg);
   ObjectSetString(chartID, ID1+"Xard14", OBJPROP_TEXT, DoubleToString(adrAvg, 0));
   ObjectSetInteger(chartID, ID1+"Xard14", OBJPROP_COLOR, adrAvg > yestAvg ? C'255,140,255' : clrDeepSkyBlue);
These users thanked the author xard777 for the post (total 8):
Abzak, asgariHoo, TriThep, jackboton, ODJ, Shockr, Musashi, ashdays
XARD: If Carlsberg made charts... Probably the best charts in the world

Re: 🔺 MT5 XARD - Simple Trend Following Trading System

714
xard777 wrote: Wed Aug 20, 2025 12:19 pm RE: Changing the ADR settings in the Panel back to their original setting.
Best,
Xard777

Here is the code...

Code: Select all

static double cachedAdrAvg = 0.0;
   static double cachedYestAvg = 0.0;
   static int lastDailyBars = 0;
   int currDailyBars = iBars(symbol, PERIOD_D1);
   if (cachedAdrAvg == 0.0 || currDailyBars > lastDailyBars)
   {
      double sum1 = 0, sum5 = 0, sum10 = 0, sum20 = 0;
      int cnt1 = 0, cnt5 = 0, cnt10 = 0, cnt20 = 0;
      int maxBars = MathMin(Bars(symbol, PERIOD_D1), BarsCount);
      int maxD = MathMin(20, maxBars - 1);
      for (int i = 1; i <= maxD; i++)
      {
         double r = iHigh(symbol, PERIOD_D1, i) - iLow(symbol, PERIOD_D1, i);
         sum20 += r; cnt20++;
         if (i <= 10) { sum10 += r; cnt10++; }
         if (i <= 5) { sum5 += r; cnt5++; }
         if (i <= 1) { sum1 += r; cnt1++; }
      }
      double adr1 = (cnt1 > 0) ? sum1 / cnt1 : 0;
      double adr5 = (cnt5 > 0) ? sum5 / cnt5 : 0;
      double adr10 = (cnt10 > 0) ? sum10 / cnt10 : 0;
      double adr20 = (cnt20 > 0) ? sum20 / cnt20 : 0;
      double adrAvgRaw = (adr1 + adr5 + adr10 + adr20) / 4;
      cachedAdrAvg = adrAvgRaw * pipsize;
      cachedYestAvg = (iHigh(symbol, PERIOD_D1, 1) - iLow(symbol, PERIOD_D1, 1)) * pipsize;
      lastDailyBars = currDailyBars;
      if (DebugWithSquealers) Print("SQUEALER: Cached ADR Update - New Daily Bars: ", currDailyBars, ", ADR Avg: ", cachedAdrAvg, ", Yest Avg: ", cachedYestAvg);
   }
   double adrAvg = cachedAdrAvg;
   double yestAvg = cachedYestAvg;
   if (DebugWithSquealers) Print("SQUEALER: 20 Day Range - Raw Avg: ", adrAvg / pipsize, ", Pipsize: ", pipsize, ", Result: ", adrAvg);
   ObjectSetString(chartID, ID1+"Xard14", OBJPROP_TEXT, DoubleToString(adrAvg, 0));
   ObjectSetInteger(chartID, ID1+"Xard14", OBJPROP_COLOR, adrAvg > yestAvg ? C'255,140,255' : clrDeepSkyBlue);
Thanks, XARD. :Fire:
These users thanked the author asgariHoo for the post (total 4):
TriThep, stond, Shockr, ashdays

DownloadRe: 🔺 MT5 XARD - Simple Trend Following Trading System

715
I'm trying to translate this https://www.tradingview.com/script/4v1E ... BigBeluga/ TradingView code to .mq5 and despite my attempts I couldn't get it to work as I wanted.

But after reading XARD's writings, I realized that I don't even need to try to translate it to MT5 because XARD had already given me everything I needed.
These users thanked the author Pelle for the post (total 2):
mirfai, ashdays


Re: 🔺 MT5 XARD - Simple Trend Following Trading System

717
Hey everyone,

So, I’ve spent the last year giving this “magical” system a fair chance. MT5, multiple timeframes, lower TF entries, higher TF confirmation, followed every little guideline Xard and his fanboys have ever suggested.

And what did I get for all that time? False signals on repeat, repainting nonsense, and lagging entries that show up after the move is already gone. Honestly, it’s like trying to drive a car by only looking in the rearview mirror.

Let me make one thing clear: I’m not some salty newbie blowing accounts. I trade prop firm accounts and average over 10K/month in net profit. So when I say this system is a joke, it’s not because I “don’t understand it.” It’s because it flat-out doesn’t work in live trading conditions. Period.

What blows my mind is that after years and hundreds of pages of this thread, not a single person has shown consistent, verified results. Not one. Not even Xard himself. Instead, it’s just endless screenshots, cherry-picked setups, and fairy tales about compounding your way to riches. Compounding what, exactly? The losses? The imaginary pips from repainting indicators? Give me a break.

This whole thing feels less like a trading system and more like a trading religion. Lots of hype, lots of promises, zero substance. It’s amazing how many people keep worshipping at the altar of this system when nobody can actually prove it makes steady money.

So I’ll ask the question everyone’s too polite (or too deluded) to ask: is anyone here actually making real, consistent profits with this circus act of a system? Or are we all just role-playing traders on demo accounts and patting ourselves on the back for spotting “mini dots”?

Yeah, I know this post will probably get deleted because it breaks the echo chamber, but whatever. I’d rather be blunt and call it what it is: overrated, overhyped, and utterly useless for serious traders.
These users thanked the author pipninja for the post (total 2):
mirfai, karrynguyen121212

Re: 🔺 MT5 XARD - Simple Trend Following Trading System

719
EDIT

I clean the thread from my useless attempts to make this guy think and realign his attitude, to leave the discussion on topic.

+C+
These users thanked the author Cagliostro for the post (total 7):
mirfai, jackboton, asgariHoo, forexjoe85, WN25, kudrpenk, davidpont
"I conjure from shadows and shape fortunes from the unseen. The treasure lies hidden in plain sight, beneath the sunlight." - Cagliostro

Re: 🔺 MT5 XARD - Simple Trend Following Trading System

720
Mark Douglas said it best: "You don’t need to know what will happen next to make money. You just need an edge and the discipline to take every trade."

The Xard system isn’t about predicting the future, it’s a framework for structure and bias so you can trade consistently.

Repainting doesn’t make it useless, it just means the tool updates with new data, like a moving average. What actually matters is whether you can apply it with consistency and proper risk management so the law of large numbers works in your favor.

The real edge isn’t in the dots, it’s in thinking in probabilities and letting the math play out over time.
These users thanked the author Samoth for the post (total 6):
DaveTrader, didichung, asgariHoo, Musashi, ashdays, davidpont