Re: Digital Filter indicators for MT4

91
RFTL = Reference Fast Trend Line
SATL = Slow Adaptive Trend Line

Now both indicators have alerts, mtf, and multicolors.
You can turn the multicolors on or off.

I notice that these two trend line go hand in hand. I mean they're very close next to each other.
If there's a retracement, then RFTL will change direction. But after that, it should resume in the same trend as SATL.
RFTL changes direction because it's a fast one. Hence its name is "Reference Fast". The slow one is smoother.
If both of them are in the same trend, then we can trade.
----------------------------------------------------------------------------------------------------------------------------------

Edit: Please download a new version below. Thank you.
viewtopic.php?p=1295400367#p1295400367
Attachments
These users thanked the author Banzai for the post:
Holmes27


Re: Digital Filter indicators for MT4

95
Hello, I'm new here, I'm curios and I'm trying to understand the logic and the math behind some of the indicators, in matters of trading it surely doesn't matter, the only thing that matters is how you use the indicator as I understand, anyhow I was looking into this indicator "LowPassFilter_v1.mq4" and looked through this piece of code and still don't have an idea as to what is trying to accomplish. I know it has something to do with the standard deviation calculations but anything other than that I see nothing. Can someone please give me at least a "kick" in the right direction in helping me understand this.
Also I'm curios how digital filtering ,which is used in signal processing where you have a predetermined signal, can be used in determining trends in trading where there is no predetermined signal that you get from a signal generator for example and you try to filter out the noise at the receiving end.
I know "google is your best friend" but I still wanted to ask, at the very least I can get a nudge in the right direction.

Code: Select all

 
 int Length = FilterPeriod;
      
      if (PctFilter>0)
      {
      Del[shift] = MathAbs(Filter[shift] - Filter[shift+1]);
   
      double sumdel=0;
      for (int j=0;j<=Length-1;j++) sumdel = sumdel+Del[shift+j];
      AvgDel[shift] = sumdel/Length;
    
      double sumpow = 0;
      for (j=0;j<=Length-1;j++) sumpow+=MathPow(Del[j+shift]-AvgDel[j+shift],2);
      double StdDev = MathSqrt(sumpow/Length); 
     
      double filter = PctFilter * StdDev;
     
      if(MathAbs(Filter[shift]-Filter[shift+1]) < filter ) Filter[shift]=Filter[shift+1];
      }
      else
      filter=0;


Re: Digital Filter indicators for MT4

96
FATL = Fast Adaptive Trend Line
SATL = Slow Adaptive Trend Line
RFTL = Reference Fast Trend Line
RSTL = Reference Slow Trend Line

FTLM = Fast Trend Line Momentum
STLM = Slow Trend Line Momentum

Updated the entire set with 33 prices.

Code: Select all

   pr_close,      // Close
   pr_open,       // Open
   pr_high,       // High
   pr_low,        // Low
   pr_median,     // Median
   pr_typical,    // Typical
   pr_weighted,   // Weighted
   pr_average,    // Average (high+low+open+close)/4
   pr_medianb,    // Average median body (open+close)/2
   pr_tbiased,    // Trend biased price
   pr_tbiased2,   // Trend biased (extreme) price
   pr_haclose,    // Heiken ashi close
   pr_haopen,     // Heiken ashi open
   pr_hahigh,     // Heiken ashi high
   pr_halow,      // Heiken ashi low
   pr_hamedian,   // Heiken ashi median
   pr_hatypical,  // Heiken ashi typical
   pr_haweighted, // Heiken ashi weighted
   pr_haaverage,  // Heiken ashi average
   pr_hamedianb,  // Heiken ashi median body
   pr_hatbiased,  // Heiken ashi trend biased price
   pr_hatbiased2, // Heiken ashi trend biased (extreme) price
   pr_habclose,   // Heiken ashi (better formula) close
   pr_habopen,    // Heiken ashi (better formula) open
   pr_habhigh,    // Heiken ashi (better formula) high
   pr_hablow,     // Heiken ashi (better formula) low
   pr_habmedian,  // Heiken ashi (better formula) median
   pr_habtypical, // Heiken ashi (better formula) typical
   pr_habweighted,// Heiken ashi (better formula) weighted
   pr_habaverage, // Heiken ashi (better formula) average
   pr_habmedianb, // Heiken ashi (better formula) median body
   pr_habtbiased, // Heiken ashi (better formula) trend biased price
   pr_habtbiased2 // Heiken ashi (better formula) trend biased (extreme) price
These users thanked the author Banzai for the post (total 4):
kvak, Jimmy, allan, Rox

Re: Digital Filter indicators for MT4

98
fxchampion wrote: Sun Feb 02, 2020 3:32 am

Greetings fellow friends,

I have wanted to try this indicator for a long while but I do not get anything. Any ideas what could be wrong?
2020-02-01 17_30_26-About.png
2020-02-01 17_31_29-H1.png
Make sure you have dll files allowed and make sure you have this dll file installed in mt4/ library folder.
These users thanked the author mrtools for the post:
fxchampion


Who is online

Users browsing this forum: alimpe2000, Amazon [Bot], Bing [Bot], friend4you, PaperLi [Bot], Ruby [Bot], SEMrush [Bot], thomdel, vvFish and 73 guests