Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 600 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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