Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, Power_P), 1,065 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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