rDominantPhase and rDominantPeriod not returned

Posted By: dhrv

rDominantPhase and rDominantPeriod not returned - 11/01/17 16:59

Since Zorro v1.6+ (v1.59.95 was the last working version) the function DominantPhase doesn't return the variables rDominantPhase and rDominantPeriod anymore (as stated in the manual), at least in my environment.

Can somebody please use this script and check if the print also shows 0.0 for both rDominantPhase and rDominantPeriod? Thank you.

Code:
function run()
{
    StartDate = 20160101;
    EndDate = 20160115;
    BarPeriod = 60;
    LookBack = 100;
    vars Price = series(price());
    vars DomPha = series(DominantPhase(Price,30));
    vars DomPer = series(DominantPeriod(Price,30));
    printf("nDomPha: %f", DomPha[0]);  
    printf("  DomPer: %f", DomPer[0]);  
    printf("nrDominantPhase: %f", rDominantPhase);  
    printf("  rDominantPeriod: %f", rDominantPeriod);
    printf("n---");
}

Posted By: jcl

Re: rDominantPhase and rDominantPeriod not returned - 11/01/17 17:34

It is indeed so - thanks for the info. This seems to be a bug after version 1.59.95. It will be fixed in the next update. Until then, please use the return values of the functions.
Posted By: dhrv

Re: rDominantPhase and rDominantPeriod not returned - 11/01/17 20:28

Alright, thanks for fixing this.
© 2024 lite-C Forums