This is my own version of a unique id per program. It is designed to be used in indicators that are loaded more than once in the terminal, but can be used for any programs needing unique ids. I use variations of this in my multiple loaded indicators code.
https://github.com/Fooeybar/MQL4/blo...nclude/GPS.mqh
https://github.com/Fooeybar/MQL4/blo...nclude/GPS.mqh