Serial Communication to Arduino in MQL5 EA

 

Hello, i'm trying to write expert advisor to send alert signal to a microcontroller board attached to my computer in COM3. I inspired to try this when i saw video on youtube to communicate to arduino with C++ languange (code attached). I have already upload the code to arduino and it's look like this. Basically it's sending text to COM3 and the microcontroller will flash a corresponding led light. Any help on how to implement this on metaeditor is very appreciated.

Regards,
PMDWI

 

Your best options would be to use Python because you can not do it directly from Metatrader.

Here is the Python forum located: https://www.mql5.com/en/forum/306742

MetaTrader 5 Python User Group - the summary
MetaTrader 5 Python User Group - the summary
  • 2019.03.14
  • www.mql5.com
The Main StudyPython Releases for Windows - website, MetaTrader5 : Python Package - website ---------------- The Article MetaTrader 5 and Python in...
 
Marco vd Heijden:

Your best options would be to use Python because you can not do it directly from Metatrader.

Here is the Python forum located: https://www.mql5.com/en/forum/306742

thank you sir

have a nice day :D

Regards,
PMDWI
Reason: