Attachments forums

List of attachments posted on this forum.


All files on forums: 134132

Homodyne Discriminator

Jimmy, Wed Oct 30, 2019 11:35 pm

Homodyne Discriminator

For reference and for those who are researching this algorithm for their coding projects, I will post the Homodyne Discriminator here.

This particular version of the Homodyne Discriminator was kindly re-coded & fixed for MT4 by Mrtools & Mladen as the original translation from EasyLanguage code had issues when coded in MQL.

As explained by John Ehlers:

Homodyne Discriminator exhibits superior performance in a low signal-to-noise environment.
Homodyne means I use the signal multiplied by itself one bar ago to produce a zero-frequency beat note. This beat note carries the phase angle of the one-bar change. Still using the basic definition of a cycle, the one-bar rate of change of phase is exactly the cycle period.

-- John F. Ehlers


A further explanation by Mladen in regards to this specific version that he coded:
There is already one more version of Homodyne discriminator but it is even heavier on resources than the HT (it calculates all the bars for every tick) and it has a deviation from the original indicator in the part where the price is concerned : it uses 4 period linear weighted price instead of "pure" price. This one solves all those issues

Examples of the Homodyne Discriminator used in MT4 coding:

For coders looking for an example of how the Homodyne Discriminator is implemented, Mrtools uses this specific algorithm in his Adaptive Gann High-Low Activator JMA Heiken Ashi Arrows for MT4 where the corrected version of the Homodyne Discriminator is integrated.
All files in topic