Download MetaTrader 5

How can I share an object between indicator and EA?

To add comments, please log in or register
Improve your rating. Execute orders in Freelance service!
HongDi s& t development co.,ltd.
1598
hongbin fei 2013.09.30 07:42 

myclass object1;

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

 

thanks

hongbin 

HongDi s& t development co.,ltd.
1598
hongbin fei 2013.10.18 07:41  
any one help me?
Alain Verleyen
Moderator
30731
Alain Verleyen 2013.10.18 07:55  
You can't do that. What are trying to do ?
HongDi s& t development co.,ltd.
1598
hongbin fei 2013.10.18 09:09  
angevoyageur:
You can't do that. What are trying to do ?
indicator create the object , let EA to use it.
Mehrdad Shiri
4481
Mehrdad Shiri 2013.10.18 09:28  
codeidea:
indicator create the object , let EA to use it.
is it possible ? i was thinking can't do this.
Alain Verleyen
Moderator
30731
Alain Verleyen 2013.10.18 09:48  
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
4481
Mehrdad Shiri 2013.10.18 10:18  
angevoyageur:
codeidea
thank you
HongDi s& t development co.,ltd.
1598
hongbin fei 2013.10.25 16:30  
TIMisthebest:
thank you
MQL5 is still poor than delphi or vc++
Alain Verleyen
Moderator
30731
Alain Verleyen 2013.10.25 16:39  
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
1943
enbo lu 2013.10.25 16:42  
Why don't you let the indicator output what you need in the buffer instead of using an object declared in it?
Anton Nel
37029
Anton Nel 2013.10.25 18:15  
Use iCustom function.
12
To add comments, please log in or register