Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by Ayumi
8 minutes 11 seconds ago
Performance report on the imported trades
by OptimusPrime
15 minutes 30 seconds ago
Possible to return character vector from R bridge?
by JamesHH
Today at 18:59
Help with Wine on Linux
by AndrewAMD
Today at 16:59
Stock Splits
by AndrewAMD
Today at 16:23
Linux - Help with setting up with Wine and Zorro
by michaelj
Today at 04:49
How to expand Zorro to work with other broker ( like Tradovate )
by AndrewAMD
Today at 02:12
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online
12 registered (AndrewAMD, Ayumi, JamesHH, ChrstphFr, michaelj, Akow, jenGs, Bill_Lin_Fang, alibaba, 1 invisible), 165 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Bill_Lin_Fang, michaelj, ThePituLegend, kankan, Nofip
18207 Registered Users
Topic Options
Rate This Topic
#475441 - 12/09/18 19:21 advance decline (ADO) code examples?
bondz Offline
Guest

Registered: 12/09/18
Posts: 2
Hi,
I wrote the following code (on version 1.74) in order to display an indicator for the advance decline ratio. However, what I get back on the display is an 'infinitely' long number which display as a straight line. I tried dividing and multiplying by a infinitely small decimal, but nothing seemed to work. Is there a code for this somewhere? Thanks for your help in advance.
Here is what I wrote (it works, but the display is wonky)


vars ado = ADO;
var ado1 = (ado[0] + ado[1]) - (ado[2] + ado[3]);
vars ado1ser = series(ado1,1);

Top
#475442 - 12/09/18 19:52 Re: advance decline (ADO) code examples? [Re: bondz]
3dgamelight Offline
Member

Registered: 04/24/17
Posts: 106
I guess ADO is a function pointer, you mean:
Code:
vars ado = series(ADO());


Top
#476865 - 04/16/19 01:09 Re: advance decline (ADO) code examples? [Re: 3dgamelight]
bondz Offline
Guest

Registered: 12/09/18
Posts: 2
thanks laugh

Top


Moderator:  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de