Download MetaTrader 5
To add comments, please log in or register
Traders have already contributed more than 300 articles. Write your own one!
astera
19
astera 2014.09.29 23:18 

Hi there,

I am currently working on an EA that will allow me to do automated trading on Binary Options. It seems that there are limited brokers available with APIs or options for interfacing with their platform, so I would like to build a macro that I can trigger from MT5 to do this for me.

Although I have the signal generator, pretty much under control, I cannot find sufficient information on how to send data to the clipboard to act as a trigger. Is there someone that maybe have some sample code on how to do this or know of a method on getting information from MT5 to the clipboard?

Thank you for any help.

Tan Phan Ngoc
1332
Tan Phan Ngoc 2014.09.30 08:20  
astera:

Hi there,

I am currently working on an EA that will allow me to do automated trading on Binary Options. It seems that there are limited brokers available with APIs or options for interfacing with their platform, so I would like to build a macro that I can trigger from MT5 to do this for me.

Although I have the signal generator, pretty much under control, I cannot find sufficient information on how to send data to the clipboard to act as a trigger. Is there someone that maybe have some sample code on how to do this or know of a method on getting information from MT5 to the clipboard?

Thank you for any help.

what you want? you should explain more.
Alain Verleyen
Moderator
30284
Alain Verleyen 2014.09.30 08:51  
astera:

Hi there,

I am currently working on an EA that will allow me to do automated trading on Binary Options. It seems that there are limited brokers available with APIs or options for interfacing with their platform, so I would like to build a macro that I can trigger from MT5 to do this for me.

Although I have the signal generator, pretty much under control, I cannot find sufficient information on how to send data to the clipboard to act as a trigger. Is there someone that maybe have some sample code on how to do this or know of a method on getting information from MT5 to the clipboard?

Thank you for any help.

Search engine ?
astera
19
astera 2014.09.30 11:02  
Makeprofitsuper:
what you want? you should explain more.

Hi,

Thanks for answering. Basically all I need to do is to be able to send a string (that will contain information that I will use in a macro) to the clipboard as soon as a signal is triggered in MT5. The Macro will be monitoring the contents of the clipboard and as soon as new information is added to the clipboard, it will fire a specific Macro, that will trade on the Binary Option Broker's web page. That is in a nutshell what I would like to do.

If you know of any other method, I would be very interested.

Thank you.

astera
19
astera 2014.09.30 11:15  
angevoyageur:
Search engine ?

I have tried all of those suggestions, but they seem quite cumbersome. I was thinking that there was probably easier ways to get this done now as those comments were suggested 4 years ago. I am still a bit new to MQL5, but progressing well.

Thanks,

astera
19
astera 2014.09.30 12:17  

Alternatively, I could also make use of a WindowsMessage to trigger the Macro, which may be easier. If anybody has some sample code on how to send a WindowsMessage from MQL5 that would also help a lot.

Thanks,

astera
19
astera 2014.10.08 21:28  
No one with any suggestions on this?
/
To add comments, please log in or register