Help for an EA

 

Hi guys, just trying to make an EA that copy the signals from telegram to mt5.

I have a doubt, for close the trade i need to reply to the original message signals on telegram, but in my case my texts are setted in this way:

SELL LIMIT GBP/USD 1.27000

(reply to the previous message)
TRADE OPENED

(reply to the previous message)
CLOSE THE TRADE

in this way the text for close the trade doesn't reply to the original message and doesn't close the trade. it's possible to take the id message of the first message?

thank you in advance, i hope i have explained myself

 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
  • Usually people who can't code don't receive free help on this forum.
  • If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code.
  • To learn MQL programming, you can research the many available Articles on the subject, or examples in the Codebase, as well as reference the online Book and Documentation
  • Remember also, that you can debug your code with MetaEditor's own debugging functionality.
  • If you do not want to learn to code, that is not a problem. You can either look at the Codebase if something free already exists, or in the Market for paid products (also sometimes free). However, recommendations or suggestions for Market products are not allowed on the forum, so you will have to do your own research.
  • Finally, you also have the option to hire a programmer in the Freelance section.
 
Lorenzo Pizzarelli:

Hi guys, just trying to make an EA that copy the signals from telegram to mt5.

I have a doubt, for close the trade i need to reply to the original message signals on telegram, but in my case my texts are setted in this way:

SELL LIMIT GBP/USD 1.27000

(reply to the previous message)
TRADE OPENED

(reply to the previous message)
CLOSE THE TRADE

in this way the text for close the trade doesn't reply to the original message and doesn't close the trade. it's possible to take the id message of the first message?

thank you in advance, i hope i have explained myself

Yes it is possible to get the id (if it still works)

telegram.mqh reply to msg - Trading Signals - MQL4 and MetaTrader 4 - MQL4 programming forum

telegram.mqh reply to msg - I'm trying to make updates about my trades when they hit a TP and send their messages in Telegram
telegram.mqh reply to msg - I'm trying to make updates about my trades when they hit a TP and send their messages in Telegram
  • 2020.07.23
  • tdbguy
  • www.mql5.com
What i'm trying to do now is to make updates about my trades when they hit a tp and send a 'tp hit' message in telegram. And since the orderticket is the same when i close the trade, i'm thinking that it should recognise the message in telegram and replies to it right
 
Lorentzos Roussos #:
telegram.mqh reply to msg - Trading Signals - MQL4 and MetaTrader 4 - MQL4 programming forum

okay ty, i will try to figure it out