DominantPeriod vs. HTDcPeriod

Posted By: DdlV

DominantPeriod vs. HTDcPeriod - 09/07/13 19:20

Hi. The manual re. HTDcPeriod says

Code:
HTDcPeriod(var* Data): var
Hilbert Transform - Dominant Cycle Period, developed by John Ehlers (see links). This function is less accurate than the DominantPeriod function.



without any description of why DominantPeriod is more accurate. They give obviously different results, but what makes DominantPeriod better?

Also, there is no DominantPhase as there is an HTDcPhase, etc. Do these not make sense for DominantPeriod?

Thanks.
Posted By: jcl

Re: DominantPeriod vs. HTDcPeriod - 09/08/13 17:10

Yes, we could certainly implement a DominantPhase if required. We just hadn't needed it so far. The DominantPeriod is more accurate because it filters noise spikes better.
Posted By: DdlV

Re: DominantPeriod vs. HTDcPeriod - 09/19/13 21:14

Yes, please add DominantPhase to the list. In the meantime, could you post the code so I could implement it temporarily on my own?

Similarly, is SpectrumPhase a possibility?

Does Spectrum have ~10 bar lag like DominantPeriod?

Thanks.
Posted By: jcl

Re: DominantPeriod vs. HTDcPeriod - 09/20/13 08:19

I can not post the code as it belongs to the licensed part of the software, but I've added DominantPhase to the list. A SpectrumPhase is not possible because the spectrum algorithm does not deliver a phase. The Spectrum lag is frequency dependent and in the same range as the DominantPeriod lag.
Posted By: DdlV

Re: DominantPeriod vs. HTDcPeriod - 09/20/13 11:13

Thanks jcl.

Can the Spectrum code be posted or is it also in the licensed part of the software?

Thanks.
Posted By: DdlV

Re: DominantPeriod vs. HTDcPeriod - 09/23/13 20:46

Also, do I understand correctly from your post above that a Spectrum curve is best used in aggregate form over some time period (like the example of an entire month)? Using Spectrum on a particular bar would be a problem as each frequency in the Spectrum will be a little "off" - shifted by increasing lag - and possibly thereby misleading? I.e., different Spectrum TimePeriods will actually refer to different parts of the price curve?

Thanks.
© 2024 lite-C Forums