Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 04/05/26 10:06
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Grant, TipmyPip), 4,328 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ondrej, mredit, vestriaa, Lukudo, mldenoiser
19205 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: 600
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 600
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 | 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