Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, Nymphodora), 1,012 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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 | chip programmers | 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