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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Quad, M_D), 1,217 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Last indicator called #484899
12/28/21 03:53
12/28/21 03:53
Joined: Dec 2012
Posts: 34
New York
K
kandlekid Offline OP
Newbie
kandlekid  Offline OP
Newbie
K

Joined: Dec 2012
Posts: 34
New York
Just a quick question, is there a field in struct GLOBALS that contains the last indicator called? I am doing some
coding using that structure (e.g. vPeak, vSlope, etc), and want to make sure that the fields were set with the
correct indicator (i.e. the last indicator to set those fields).

Cheers

Last edited by kandlekid; 12/28/21 04:01. Reason: add info
Re: Last indicator called [Re: kandlekid] #484902
12/28/21 14:11
12/28/21 14:11
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
I think not. You could do that by script, store the last indlicator name or function pointer in a variable.

Re: Last indicator called [Re: Petra] #484912
12/29/21 06:07
12/29/21 06:07
Joined: Dec 2012
Posts: 34
New York
K
kandlekid Offline OP
Newbie
kandlekid  Offline OP
Newbie
K

Joined: Dec 2012
Posts: 34
New York
Ok. Obviously I can just look at my script to see. But in general, one of the big problems with globals is "who set it?".
I would think that having a field that indicated the last function to possibly set a global would be a "no brainer". Anyway, jmho.


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