Indicators: Reflex

 

Reflex:

Reflex indicator (based on February 2020 TASC article by John Ehlers - metatrader 4 version)

Reflex

Author: Mladen

 

I'm studying your code to learn mq4 and mq5. I notice that in the original EasyLanguage we have:

//Gently smooth the data in a SuperSmoother
a1 = expvalue(-1.414*3.14159 / (.5*Length));
b1 = 2*a1*Cosine(1.414*180 / (.5*Length));

But in your mq4 and mq5 versions you have:

         double a1 = MathExp(-1.414*M_PI/m_period);
         double b1 = 2.0*a1*MathCos(1.414*M_PI/m_period);

Is there a reason why m_period is not halved?

Reason: