Last indicator called

Posted By: kandlekid

Last indicator called - 12/28/21 03:53

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
Posted By: Petra

Re: Last indicator called - 12/28/21 14:11

I think not. You could do that by script, store the last indlicator name or function pointer in a variable.
Posted By: kandlekid

Re: Last indicator called - 12/29/21 06:07

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.
© 2024 lite-C Forums