The way to get an Chat ID
– Chat with BotFather to create Bot and get API Token of Bot. In the event you had Bot, skip the step.
– Open the channel/group Information, then Handle, Add Directors, kind the bot username, and click on Save
– Ship any message to the channel/group like “howdy world”
– chat with bot @userinfobot , then ahead message in your channel to bot @userinfobot , the bot will reply your channel ID.
– You could permit WebRequest and add the https://api.telegram.org URL in “Instruments” → “Choices” → “Professional Advisors”.
– Telegram Bot should is member of group or admin of channel.
– Connect it to at least one chart solely.
For Customized Message
– Obtain file right here , then copy the file to folder <Knowledge folder>/MQL5/Information/
– So as to add Emoji: search Emoji and get code of Emoji ( Unicode column )
– Beneath is all variable so as to add to customized message:
- [TICKET] -> Order Ticket
- [OPENTIME] -> Order open time
- [TYPE] -> Order kind
- [SIZE] -> Order measurement , order heaps
- [SYMBOL] -> Order image
- [OPENPRICE] -> Order open value
- [S/L] -> Order stoploss
- [S/L-PIPS] -> Order stoploss in pips
- [T/P] -> Order Takeprofit
- [T/P-PIPS] -> Order Takeprofit in pips
- [COMMENT] -> Order remark
- [CLOSEPRICE] -> Order shut value
- [CLOSETIME] -> Order shut time
- [EXPIRATION] -> Order expire time
- [P/L] -> Revenue in cash
- [P/L-PIPS] -> Revenue in pips
- [RISKREWARD] -> Danger reward of order
- [OLD PRICE] -> Previous open value of pending order
- [OLD S/L] -> Previous order sl value
- [OLD T/P] -> Previous order takeprofitprice
- [ACCOUNT] -> Account quantity
- [BALANCE] -> Banlance
- [EQUITY] -> Fairness
- [CURRENCY] -> Account Forex
- [BROKERTIME] -> Time of dealer
- [P/L %] -> Revenue % = Revenue / Banlance
- [P/L-POINT] -> Revenue in factors