Hi, folks!
I made an extensive search on FF forum and couldn't get the info I wanted to get about the Cycle Identifier Indicator. In particular, the ZeroLag() function.
Over the years I came across with several formulas for calculating several things, but... this is something where I got lost (or maybe I need some sleep). Even so, it is clear that It's a Geometric Calculation including numbers like Pi, e, and the "magical" 1.414 ratio.
Can somebody provide some insight about this? I mean, the Geometric figure involved. Sounds like Harmonics.
At the end of this post you will find the Source Code.
I made an extensive search on FF forum and couldn't get the info I wanted to get about the Cycle Identifier Indicator. In particular, the ZeroLag() function.
Inserted Code
double ZeroLag(double price, int length, int pos) { if (length < 3) { return(price); } double aa = MathExp(-1.414*3.14159 / length); double bb = 2*aa*MathCos(1.414*180 / length); double CB = bb; double CC = -aa*aa; double CA = 1 - CB - CC; double CD = CA*price + CB*ZL1[pos+1] + CC*ZL1[pos+2]; return(CD); }
Over the years I came across with several formulas for calculating several things, but... this is something where I got lost (or maybe I need some sleep). Even so, it is clear that It's a Geometric Calculation including numbers like Pi, e, and the "magical" 1.414 ratio.
Can somebody provide some insight about this? I mean, the Geometric figure involved. Sounds like Harmonics.
At the end of this post you will find the Source Code.
Attached File(s)
Cycle identifier wAlert1 major.mq4
15 KB
|
2,583 downloads
Trade, don't bet.