Discord To MT4/MT5 Receiver

Discord To MT4/MT5 Receiver

16 August 2023, 22:45
Levi Dane Benjamin
1
1 344

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.30 and extract the files


2. Run DaneTrades_Discord_To_MT4_5_v1.30.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. Expand and select the server/channel you wish to copy from and select copy channel


9. Any Channel IDs in the Copying 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

How to Enable EA

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

 


 

Setup Tab

  1. Enables/Disables tool tips
  2. Risk per trade in % of balance
  3. Symbol suffix for example '.i' to make GBPUSD.i
  4. Symbol Prefix for example 'x' to make xGBPUSD
  5. Exclude symbols separated by , (XAUUSD, SPX500)
  6. Include symbols separated by , (XAUUSD, SPX500)
  7. Channel Filter via Channel Name (separated by ','). The channels in here will be the ONLY channels copied. This only needs to be used when running on multiple accounts and you want to filter specific channels on certain accounts.
  8. Send notifications. Tick to enable
  9. Trade Management Mode. Both = Signals can be managed from the Signal Provider or from the 'Manage Tab'. 'From Signal = trade managed by signal from Discord. Manual = Trades can be managed by 'Manage Tab' or manually. Will ignore modifications sent from signal
  10. Entry settings - Opens the Entry settings window
  11. SL settings - Opens the SL settings window
  12. TP settings - Opens the TP setting window
  13. More Settings - Opens More Settings Window
  14. Help to get connected to Discord
  15. Enables the EA to start copying


Notify Settings

 

  1. Click on Notify Settings to Open Notification Settings Window
  2. Set the type of Notification you would like to receive; Alerts, Push, Email
  3. Notify Settings for various actions


Entry Settings

 

  1. Execute orders at market instead of using the entry in the signal
  2. If Price > Slippage, Turn Into Pending Order - If price is outside the slippage amount it will be turned into a pending order.
  3. Max slippage for the Entry Price - If the Entry price for MARKET orders in the signal is too far away from the price on your broker it will either be ignored or turned into a pending order (If 2. is selected)
  4. If Bid/Ask > Slippage, Turn Into Pending Order – If the difference between the Signal Entry and your Broker price exceeds the specified slippage, convert to a pending order.
  5. Randomize Entry Pips – Randomize the entry point within a specified range of pips. Specify the minimum and maximum pips for randomization. Helps in making your trades unique.


Entry Zone Settings

6. Select Entry To Use - Some signals have an Entry Range or Zone, Select with Entry price to use:

-          BUY EURUSD @ 1.1120 - 1.1130

-          First Price = 1.1120

-          Middle Price = 1.1125

-          Second Price = 1.1130

7.Only Take Entries inside Zone - Only take the signal if the MARKET Entry price is between the Entry Zone

8. Pending Inside Zone – If the current broker Bid/Ask is outside the signal entry zone a Pending Order inside the zone. The Pending will be placed at the ‘Select Entry To Use’ Price.

 

SL Settings

 

 


  1. Ignore Signals With No SL - All signals that do not have a SL will NOT be copied
  2. Set Manual SL (Pips from Entry) - Ignore the SL in the signal and set your own SL. A value of 20 would set SL at 20 pips away from the entry price
  3. Signal SL Given in Price or Pips – Specify whether the signal’s SL is given in Price or Pips. • Price – Select if SL is an absolute price level • Pips – Select if SL is a distance in Pips from entry
  4. Randomize SL Pips (Min:Max) – Randomize the SL distance in pips within a specified range. Specify the minimum and maximum pips for randomization. Helps in making your trades unique. 

 


TP Settings

 


  1. TP1 Risk Share (%) - 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%
  2. TP2 Risk Share (%) - 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
  3. TP3 Risk Share (%) - 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%
  4. Set Manual TP1 (Pips from Entry) - Ignore the TP1 in the signal and set your own TP1. A value of 20 would set TP1 at 20 pips away from the entry price
  5. Set Manual TP1 (RR) * Requires SL - Ignore the TP1 in the signal and set your own TP1. A value of 2 would set TP1 at 2 RR away from the entry price. If SL is 0 this setting will NOT work
  6. Set Manual TP2 (Pips from Entry) - Ignore the TP2 in the signal and set your own TP2. A value of 30 would set TP2 at 30 pips away from the entry price
  7. Set Manual TP2 (RR) * Requires SL - Ignore the TP2 in the signal and set your own TP2. A value of 3 would set TP2 at 3 RR away from the entry price. If SL is 0 this setting will NOT work
  8. Set Manual TP3 (Pips from Entry) - Ignore the TP3 in the signal and set your own TP3. A value of 40 would set TP3 at 40 pips away from the entry price
  9. Set Manual TP3 (RR) * Requires SL - Ignore the TP3 in the signal and set your own TP3. A value of 3.5 would set TP3 at 3.5 RR away from the entry price. If SL is 0 this setting will NOT work
  10. Ignore Signals With No TP - All signals that do not have a TP will NOT be copied
  11. Signal TP Given in Price or Pips - Specify whether the signal’s TP is given in Price or Pips. • Price – Select if TP is an absolute price level • Pips – Select if TP is a distance in Pips from entry
  12. Randomize TP Pips (Min:Max) – Randomize the TP distance in pips within a specified range. Specify the minimum and maximum pips for randomization. Helps in making your trades unique. 

 

More Settings

 

 

  1. Symbol Mapping - If symbol names are not the same in the signal as your broker then you need to map it. The format is 'Symbol From Signal' = 'Symbol in broker'. Then use ',' (Comma) as a separator. For example BRENT = OIL,SP500 = US500. GOLD is already mapped to XAUUSD by default so this does not need to be added
  2. Signal Delay (ms) - Delay Taking signals by increasing this timer
  3. Signal Offset for Entry, SL, TP (Pips) - When receiving a signal you can add a few pips to the values to make them unique. Good for prop firms.
  4. Partial Signal Amount - If a signal sends command to take a partial. The partial amount will be the value in this field
  5. Remove words - Any words or phrases in this list will be removed from the signal. For example in this field you have 'Trade is in profit'. Original message = XAUUSD Trade is in profit Go Breakeven. Modified Signal = XAUUSD Go Breakeven
  6. Allow Hedging (Buys and Sells on same symbol) – Enable to allow hedging on the same symbol (buy and sell simultaneously). This options depends on your brokers support for hedging.
  7. Ignore Reply Messages – Ignore reply messages in signal channels. Prevents unintended actions triggered by replies to signals.
  8. Ignore Signals Via Words – Signals that contain any of the words/phrases in the filter will be ignored.
  9. Auto Save Settings – Any changes made in the GUI will be saved automatically when the EA is closed
  10. Auto Load Settings - Load previous saved settings on EA Start
  11. Save Settings – Manually save the settings
  12. Load Settings – Manually load the settings
  13. Delete Settings – Delete the settings config



(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.