HOW TO SETUP MT4 to Discord

14 October 2021, 15:40
Trinh Dat
1
1 310

https://www.mql5.com/en/market/product/49912

The Expert Advisor will send notifications via Discord when orders are opened/modified/closed on your MetaTrader 4 account.
  • Send message and screenshot to Discord group/channel
  • Easy to customize message. 
  • Support custom message for all languages
  • Support full Emoji. 

Parameters

  • Discord url Webhook - create webhook on your Discord channel.
  • Magic number filter - default all, or input magic number to notify with comma, like: 111,222,333.
  • Symbol filter - default all, or input symbol to notify with comma like: EURUSD,USDJPY.


Important Note


- You must allow WebRequest and add the https://discord.com URL in "Tools" → "Options" → "Expert Advisors".

- Attach it to one chart only.


For Custom Message


- Download file here  ( right click and save link as ) , then copy setting file to folder <Data folder>/MQL4/Files/DiscordMessage.txt

- To add Emoji, input shortcode of Emoji as :thumbsup:

- Read about Discord text formatting here 

- Below is all variable to add to custom message:

  1. [TICKET]  -> Order Ticket 
  2. [OPENTIME]   -> Order open time
  3. [TYPE]  -> Order type
  4. [SIZE]   -> Order size , order lots
  5. [SYMBOL]  -> Order symbol
  6. [OPENPRICE]  -> Order open price
  7. [S/L]  -> Order stoploss
  8. [S/L-PIPS]   -> Order stoploss in pips
  9. [T/P]  -> Order Takeprofit
  10. [T/P-PIPS]   -> Order Takeprofit in pips
  11. [COMMENT]  -> Order comment
  12. [CLOSEPRICE]  -> Order close price
  13. [CLOSETIME]  -> Order close time
  14. [EXPIRATION]  -> Order expire time
  15. [P/L]  -> Profit in money
  16. [P/L-PIPS]  -> Profit in pips
  17. [RISKREWARD]  -> Risk reward of order
  18. [OLD PRICE]   -> Old open price of pending order
  19. [OLD S/L]   -> Old order sl price
  20. [OLD T/P]   -> Old order takeprofitprice
  21. [ACCOUNT]  -> Account number
  22. [BALANCE]   -> Banlance 
  23. [EQUITY]   -> Equity 
  24. [CURRENCY]   -> Account Currency
  25. [BROKERTIME]   -> Time of broker
  26. [P/L %]  -> Profit in percent
  27. [REPORT_FROM] -> report from day without year
  28. [REPORT_TO] ->  report to day


Files:
Share it with friends: