Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, SBGuy, Petra), 801 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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