Is it possible for an indicator to call a script?

 

Hi all!!

I need a custom indicator to run a script when some conditions are met. Is it possible to do that in MQL4? please don't answer "Do an EA" or something like that, there is some reasons why I need it to be an indicator!!

Thank you!!

 
Manuel Vene:
Hi all!!

I need a custom indicator to run a script when some conditions are met. Is it possible to do that in MQL4? please don't answer "Do an EA" or something like that, there is some reasons why I need it to be an indicator!!

Thank you!!

You can do the following :

- assign a shortcut key to the script

- generate a SendKey() event from your indicator which would then start the script

More information you can find here : https://www.mql5.com/en/forum/174204 (disregard the EA in the thread name - same SendKey() principle can be used from an indicator too)

Reason: