Download MetaTrader 5

Indicator call Method to EA

To add comments, please log in or register
Bilal Said
364
Bilal Said  

Hi guys,i've a indicator which calculates and if my condition is true,i want to call a method to a EA to execute an order.


I was thinking about load a buffer,but i dont think if it gonna works.


It's possible to call a method inside my EA from my indicator ?

i'm already using ICustom to load a handler reference to my indicator.

or if it's possible,my EA calls a method from indicator if some condition is true.

Thanks !

Bilal Said
364
Bilal Said  

i don't think it is possible.but i working now with Global Variables.

I check it every tick and if it changes,i call a method.

whroeder1
15934
whroeder1  
saidmrn: ,i've a indicator which calculates and if my condition is true,i want to call a method to a EA to execute an order.
Don't try do that. Just get the value of the indicator in the EA and do what you want with it. You should write a self documenting function instead of calling iCustom directly, see Detailed explanation of iCustom - MQL4 forum
Bilal Said
364
Bilal Said  
whroeder1:
Don't try do that. Just get the value of the indicator in the EA and do what you want with it. You should write a self documenting function instead of calling iCustom directly, see Detailed explanation of iCustom - MQL4 forum

yes,i think this is the best way,thanks !
To add comments, please log in or register