Download MetaTrader 5

How can I share an object between indicator and EA?

To add comments, please log in or register
HongDi s& t development co.,ltd.
1603
hongbin fei  

myclass object1;

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

 

thanks

hongbin 

HongDi s& t development co.,ltd.
1603
hongbin fei  
any one help me?
Alain Verleyen
Moderator
35063
Alain Verleyen  
You can't do that. What are trying to do ?
HongDi s& t development co.,ltd.
1603
hongbin fei  
angevoyageur:
You can't do that. What are trying to do ?
indicator create the object , let EA to use it.
Mehrdad Shiri
4722
Mehrdad Shiri  
codeidea:
indicator create the object , let EA to use it.
is it possible ? i was thinking can't do this.
Alain Verleyen
Moderator
35063
Alain Verleyen  
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.
Mehrdad Shiri
4722
Mehrdad Shiri  
angevoyageur:
codeidea
thank you
HongDi s& t development co.,ltd.
1603
hongbin fei  
TIMisthebest:
thank you
MQL5 is still poor than delphi or vc++
Alain Verleyen
Moderator
35063
Alain Verleyen  
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 ?

enbo lu
Moderator
1957
enbo lu  
Why don't you let the indicator output what you need in the buffer instead of using an object declared in it?
Anton Nel
44052
Anton Nel  
Use iCustom function.
12
To add comments, please log in or register