Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 17,605 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
rDominantPhase and rDominantPeriod not returned #468995
11/01/17 16:59
11/01/17 16:59
Joined: Feb 2017
Posts: 9
D
dhrv Offline OP
Newbie
dhrv  Offline OP
Newbie
D

Joined: Feb 2017
Posts: 9
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---");
}


Re: rDominantPhase and rDominantPeriod not returned [Re: dhrv] #468999
11/01/17 17:34
11/01/17 17:34
Joined: Jul 2000
Posts: 28,022
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,022
Frankfurt
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.

Re: rDominantPhase and rDominantPeriod not returned [Re: jcl] #469004
11/01/17 20:28
11/01/17 20:28
Joined: Feb 2017
Posts: 9
D
dhrv Offline OP
Newbie
dhrv  Offline OP
Newbie
D

Joined: Feb 2017
Posts: 9
Alright, thanks for fixing this.


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1