Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
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
0 registered members (), 18,175 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
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: 594
Austria
Petra Offline
Support
Petra  Offline
Support

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