it is define in indicator , how can I let EA use this var(object) ?
I understood that. But what is the purpose of this object, why do you need to use it in your EA ? Maybe there is a workaround.
mql5 is not general language as delphi or c++. It's intended for trading program.
Anyway, why don't you reply to question if you need help ? I can't see a good reason to share an object, so I repeat my question : why do you need to use it in your EA ?