Discord To MT4/MT5 Receiver

Discord To MT4/MT5 Receiver

16 August 2023, 22:45
DaneTrades Ltd
1
498

How to Install Demo

  • Open the MT4/MT5 platform Select ‘File’ from the main menu
  • Click on ‘Open Data Folder’ to bring up a new folder panel
  • Select the ‘MQL4/5’ folder, followed by the ‘Experts’ folder
  • Drag and drop (or Copy) your EA file(s) into this folder
  • Restart MetaTrader for your changes to take affect


Setup and User Guide for Discord To MT4 and Discord To MT5

1. Download Discord To MT4/5 v1.0.1 and extract the files


2. Run DaneTrades_Discord_MT45_V_1.0.1.exe


3. To get your Discord Token log in on the Discord website via Google Chrome Browser


4. Click the three dots in the top right corner of the browser window, choose More tools, then Developer tools.





5. Go to the Application tab, click the down arrow next to Local storage in the Storage section, find and click on the Discord URL.




6. Click Toggle device toolbar and In the Filter field, type token.




7. Copy and Paste this token into the Discord To MT4/5 Application and select Login. (The token will be saved for future use)




8. In Discord go to the channel you want to copy signals from and Right Click and Select Copy Channel ID


9. Copy the Channel ID into the Discord To MT4/5 Application (Channel IDs are remembered in the history list)



10. Any Channel IDs in the Active Channel list will have their signals copied. Remove Channel ID from the Active Channel list to stop copying signals from the Channel

Please keep the program running and copying at all times while using the EA


Enable Discord To MT4/MT5 Receiver EA

You must first enable the Copier by pressing the ‘Enable’ on the bottom right of the panel.




Setup Tab


  1. Channel Filter - Any Channel ID in the Filter will have signals copied. Any Channel ID not included will be ignored
  2. Symbol suffix for example '.i' to make GBPUSD.i
  3. Symbol Prefix for example 'x' to make xGBPUSD
  4. Exclude symbols seperated by , (XAUUSD, SPX500)
  5. Risk per trade in % of balance
  6. Fixed lots per trade
  7. Send notifications. Tick to enable. Click on Notify settings to open more notification settings
  8. Trade Management Mode. Both = Trade Managed from either the signal or the manage tab. From Signal = trade managed by signal from telegram. Manual = Trades can be managed by 'Manage Tab' or manually. Will ignore modifications sent from signal
  9. Signal Settings - Opens the signal settings window
  10. Copy settings - choose which signals to copy
  11. Help to get connected to telegram


Signal Settings



  1. Open Signal Settings
  2. Symbol Mapping - If symbol names are not the same in the signal as your broker then you need to map it. GOLD is already mapped to XAUUSD by default so this does not need to be added. The format is ['Symbol From Signal' = 'Symbol in broker']. Then use ',' (Comma) as a separator. For example [BRENT = OIL],[SP500 = US500].
  3. Delay Taking signals by increasing this timer
  4. When receiving a signal you can add a few pips to the values to make them unique. Good for prop firms.
  5. If the Signal contains entry prices on their market orders then enabling this allows you to set a slippage amount and turn the order into a pending if the entry price in the signal is too far away from the current price on your broker.
  6. If price is outside the slippage amount it will be turned into a pending order. 
  7. Max slippage for the Entry Price. If the price in the signal is too far away from the price on your broker it will either be ignored or turned into a pending (see above)
  8. How much of the Risk will be allocated to TP1. For example you risk 1% overall. TP1 is set to 50%. TP1 lot size will be half of the risk amount 1%. So will be 0.5%.
  9. How much of the Risk will be allocated to TP2. For example you risk 5 lots. TP2 is set to 20%. TP2 lot size will be 25% of the 5 risk lots.  So will be 1 lot for TP2
  10. How much of the Risk will be allocated to TP3. For example you risk 1% overall. TP3 is set to 25%. TP3 lot size will be 25% of the risk amount 1%. So will be 0.25%.
  11. Ignore Signals with no SL - Signals will not be copied if they do not contain stop losses


Setup Notifications


First Setup Notifications for Email and Push following this link 

  1. Notify Settings button opens the notification window
  2. Choose to get notified via Alert, push or Email
  3. Actions to get notified for
  • Send Alert - Sends alert on the terminal
  • Send Push - Sends notification to mobile setup in tools > Options
  • Send Email - Sends email to email setup in Tools > Options


Copy Settings



1. Opens the copy settings window

2. Choose which part of the signal you want to copy


Manage Tab


  1. Max Daily Loss - Once loss has been reached no more trades can be opened
  2. Max Daily Profit - Once Profit has been reached no more trades can be opened
  3. Max Open Trades - Max number of trades allowed open at once
  4. Auto Breakeven - Set when to go breakeven. Choose from On TP1 Close, On TP2 Close, Pips or RR
  5. Trailing stop - How many pips behind price for stop loss
  6. Auto Partials - Auto partial settings. Enable to use
  7. Auto Screenshot Settings - Enable to use
  8. Trade Restriction Settings - Enable to use
  9. Open Visual Account Stats Window

Partial Settings


  1. Click on Partial Settings to Open Partial Settings WIndow
  2. Choose up to 3 Partials by ticking the box
  3. Set to use RR or Pips
  4. Trigger - How many pips or RR away from the open before partial is taken
  5. Close % - How much of the position to close. 100% is all the position 


Auto Screenshot Settings


  1. Open Auto Screenshot settings
  2. Screenshot Height in Pixels
  3. Screenshot Width in Pixels
  4. Screenshot timeframe - Auto = The current timeframe the EA is loaded on
  5. Send Screenshot on trade open
  6. Send Screenshot on pending order
  7. Send Screenshot on trade close
  8. Send Screenshot on pending order delete
  9. Send screenshot on trade modify
  10. File path of the screenshot. Can be found in data folder of MetaTrader. Go to File > Data Folder > MQL4(5) > Files

Trade Restriction Settings


  1. Open the trade restriction settings window
  2. Max Trades in the month before trading will be restricted
  3. M ax Trades in the Week before trading will be restricted
  4. M ax Trades in the Day before trading will be restricted
  5. M ax Trades in the Hour before trading will be restricted
  6. ax Trades in the Minute(s) before trading will be restricted
  7. Configure how long the Minutes window is. Max is 59 minutes
  8. Count all trades or only losing trades
  9. Restrict the current symbol or all symbols
  10. Current stats to see how far/close you are to a restriction
  11. Restricted time - Wat time a restriction was enabled. Allowed Time - See what time the restriction will be removed


Account Statistics - History Graph



  1. Graph mode. Combined - Merge all balance curves into one. Individual - Each symbol will have its own balance curve
  2. Calendar From date. Select when the trading history will begin from. The trades before this will be filtered out
  3. Calendar To date. Select when the trading history will end on. The trades after this will be filtered out
  4. Magic Number Filter. Trades without this magic number will be filtered out
  5. Update button to apply filters and refresh the graph
  6. All trading symbols in Account History will appear here. Filter by checking/unchecking
  7. Account statistics according to the current filters


Account Statistics - History Table

The account History Table tab summarises all the trades and stats via symbol. You can sort the columns by clicking on them. The data is shown for the entire account and is not affected by the filters.




  1. Symbol
  2. Total Trades 
  3. Trades Won
  4. Trades Lost
  5. Win Rate
  6. Net Profit ($)


Signal Tab


Customise what words/phrases will be used for each part of the signal. This is how you can pick up any signal no matter which language is used. The default should be good enough for most people

  1. Open more signal settings
  2. More signal settings

Time Tab


  1. Choose what days to trade on. 
  2. Close all trades at the end of the day
  3. Use time filter - Only trade between the start and end hour
  4. Order expiry - How long pending orders remain active in hours


(NOT REQUIRED - OLD METHOD) How To Setup The Discord To MT4/MT5 Receiver EA using Bot Token and Chat ID 

On Metatrader go to Tools > Options > Expert Advisors > Allow WebRequests and add the URL https://Discord.com


(NOT REQUIRED - OLD METHOD) COPY FROM SOMEONE ELSES DISCORD

If you are copying signals from someone else’s Discord they will need to give you their Bot Token. Alternatively, if you are an admin of their Discord you will also be able to follow the instructions below to create a Bot Token for the Discord. You can get the Channel ID by right clicking on the channel the signals are in and click Copy Channel ID. Copy these both into the Discord to MT5/MT4 to get connected.

If they do not have a bot token with the correct permissions. You can send them the guide below for them to set it up.


(NOT REQUIRED - OLD METHOD) COPY FROM OWN DISCORD

Create and Setup a Discord Bot

  1. Log into your Discord account and click on ‘Advanced’ in the sidebar. Then activate ‘Developer Mode’. Then click on ‘Discord API’.
  2. Activate ‘Developer Mode’ in your Discord account and then click on ‘Discord API’
  3. In the Developer Portal, click on ‘Applications’ in the sidebar on the left. Log in to your account again and then click on ‘New Application’.
  4. Click on ‘Applications’ and then ‘New Application’.
  5. Give your bot a name and then click on ‘Create’.
  6. Click on ‘Bot’ in the left sidebar, then click on reset token. Take note of the token, as this will be needed for the EA later.
  7. Scroll down and enable Message Content Intent
  8. Click ‘OAuth2’ in the left sidebar and URL Generator. Under Scope, Tick ‘Bot’. Scroll down and tick Send Messages and Read Message History under bot permissions.
  9. At the bottom copy the generated URL and paste it into the browser. Authenticate it to your discord room. The bot is now added to your discord.
  10. Right Click on the Channel you want to copy signals from and select “copy Channel ID”.
  11. Right click on the Channel you wish to take signals from and go to Settings > Permissions > Add Members or Role and add the bot to the channel.
  12. Enter the Channel ID and Bot Token from step 4 into the EA as shown in screenshot. You can use the interface or paste it into the inputs.









    Share it with friends: