Discussing the article: "Creating an MQL5-Telegram Integrated Expert Advisor (Part 5): Sending Commands from Telegram to MQL5 and Receiving Real-Time Responses"

 

Check out the new article: Creating an MQL5-Telegram Integrated Expert Advisor (Part 5): Sending Commands from Telegram to MQL5 and Receiving Real-Time Responses.

In this article, we create several classes to facilitate real-time communication between MQL5 and Telegram. We focus on retrieving commands from Telegram, decoding and interpreting them, and sending appropriate responses back. By the end, we ensure that these interactions are effectively tested and operational within the trading environment.

To demonstrate the testing process, we have prepared a video that showcases the program in action. This video illustrates the different test cases we ran and highlights how the program responded to various inputs and how well it performed its necessary tasks. When you watch this video, you'll get a very clear picture of the testing process and will be able to see, without any doubt, that the implementation meets the expected requirements. The video is presented below.

In summary, the successful execution and verification of the implementation, as demonstrated in the attached video, affirm that the program is functioning as intended.

Author: Allan Munene Mutiiria

 

Very impressive work!!

This enables the following functions to be realized:

Tradingview alert to telegram

telengram to MQL5

THX!

 
Extratimber Alpha #:

Very impressive work!!

This enables the following functions to be realized:

Tradingview alert to telegram

telengram to MQL5

THX!

@Extratimber Alpha thank you very much for the kind feedback. We're glad you found it helpful.
 
obj_msg.update_id=obj_item["update_id"].ToInt(); //--- Get the update ID
         obj_msg.message_id=obj_item["message"]["message_id"].ToInt(); //--- Get the message ID
         obj_msg.message_date=(datetime)obj_item["message"]["date"].ToInt(); //--- Get the message date

Hello Allan, thanks for this great article.

Unfortunately, the code seems to be broken from line 1384 when extracting message details from the JSON object. The first code on line 1383 

obj_msg.update_id=obj_item["update_id"].ToInt(); //--- Get the update ID

works well when printed to the journal. the update id returns a valid id. but the message_id, message_date and all other in instances return an empty value. Because of these issues, nothing seem to work in the code as should be expected.

Can you please help resolve this issues?

Thanks again for taking your time to provide this article.

 
Oluwatosin Michael Akinyemi #:

Hello Allan, thanks for this great article.

Unfortunately, the code seems to be broken from line 1384 when extracting message details from the JSON object. The first code on line 1383 

works well when printed to the journal. the update id returns a valid id. but the message_id, message_date and all other in instances return an empty value. Because of these issues, nothing seem to work in the code as should be expected.

Can you please help resolve this issues?

Thanks again for taking your time to provide this article.

Hello Allan, I finally found the issue to be from my end. Thanks for this excellent piece!

 
Oluwatosin Michael Akinyemi #:

Hello Allan, I finally found the issue to be from my end. Thanks for this excellent piece!

@Oluwatosin Michael Akinyemi thanks for the point out. Welcome.