Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, degenerate_762, AndrewAMD, ozgur), 774 guests, and 0 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
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