How can I share an object between indicator and EA?

 

myclass object1;

it is define in indicator , how can I let EA use this var(object) ?

 

thanks

hongbin 

 
any one help me?
 
You can't do that. What are trying to do ?
 
angevoyageur:
You can't do that. What are trying to do ?
indicator create the object , let EA to use it.
 
codeidea:
indicator create the object , let EA to use it.
is it possible ? i was thinking can't do this.
 
codeidea:
indicator create the object , let EA to use it.

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.

TIMisthebest:
is it possible ? i was thinking can't do this.
I answered already, it's not possible.
 
angevoyageur:
codeidea
thank you
 
TIMisthebest:
thank you
MQL5 is still poor than delphi or vc++
 
codeidea:
MQL5 is still poor than delphi or vc++

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 ?

 
Why don't you let the indicator output what you need in the buffer instead of using an object declared in it?
 
Use iCustom function.