Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ZMA has no effect #443866
07/26/14 20:41
07/26/14 20:41
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
It appears to be nearly the identity function.
The code that is executed is not what is in indicators.c. I know because I gutted that function and re-compiled, and there was no effect.
Proof:
Code:
function run() {
  set(PLOTNOW);
  vars R = series(random());
  vars Z = series(ZMA(R, 1000));
  vars Diff = series(abs(Z[0] - R[0]));
  if (Diff[0] > 0.00000001) {
    quit();
  }
  PlotHeight1 = 100;
  plot("Diff", Diff, LINE+NEW, RED);
}


Re: ZMA has no effect [Re: GPEngine] #443867
07/26/14 20:43
07/26/14 20:43
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
I meant to say ZMA behaves as if it were defined as
Code:
var ZMA(vars Data, int unused_Period) {
  return Data[0];
}


Last edited by GPEngine; 07/26/14 20:43.
Re: ZMA has no effect [Re: GPEngine] #443929
07/28/14 07:18
07/28/14 07:18
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks for the info - and yes, I see a big and obvious bug in the ZMA code in indicators.c. Can you see it too? This will be fixed in the next update.

Re: ZMA has no effect [Re: jcl] #443980
07/28/14 15:07
07/28/14 15:07
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
The first line.

Re: ZMA has no effect [Re: GPEngine] #444026
07/29/14 07:53
07/29/14 07:53
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes.


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