Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Expressing ADX [Re: Oliverlista] #484752
12/07/21 17:02
12/07/21 17:02
Joined: Aug 2017
Posts: 311
Netherlands
G
Grant Offline
Senior Member
Grant  Offline
Senior Member
G

Joined: Aug 2017
Posts: 311
Netherlands
As Petra says, you can read this in the manual.

https://zorro-trader.com/manual/en/ta.htm

Re: Expressing ADX [Re: Oliverlista] #484753
12/07/21 17:08
12/07/21 17:08
Joined: Feb 2017
Posts: 1,806
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,806
Chicago
Originally Posted by Oliverlista
Can you please express ADX as a function so I can learn?

You must use the return value of your existing ADX call, rather than dereferencing a function as an array (very illegal).

Do you know how functions work? Read here:
https://zorro-project.com/manual/en/function.htm

Do you know how vars and series work? Read here:
https://zorro-project.com/manual/en/series.htm
https://zorro-project.com/manual/en/apointer.htm

Re: Expressing ADX [Re: Oliverlista] #484754
12/07/21 17:12
12/07/21 17:12
Joined: Apr 2008
Posts: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
Austria
First you had only wrong number of parameters, but then your code became totally wrong.

Correct is ADX(18), not ADX[0]. But do not copy-paste it but learn to write correct code.

Page 2 of 2 1 2

Moderated by  Petra 

Gamestudio download | 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