⚙️ Trade Sender Connector MT4/MT5 Setup
Learn how to set up and master the Trade Sender Connector for MetaTrader 4/5.
-
In this guide, we explain the meaning of all inputs in the Trade Sender Connector Expert.
If you’re looking for instructions on how to connect a MetaTrader account using the Trade Sender Connector,
please check this guide. -
The screenshots are taken in the MT5 terminal. However, all inputs are identical and have the same meaning in both
Trade Sender Connector MT4 and Trade Sender Connector MT5.
Trade Sender Connector inputs are grouped into sections. See them below:
General Section
-
License Key: License you want to use in this connection. Learn how to create a license here.
-
License Secret: Secret key that comes together with the license above.
-
Magic Number: Magic number for all trades. You can use it to filter trades later.
-
Max Deviation: Maximum price slippage you are willing to accept when placing a trade.
-
Symbol Prefix: Use this for the Symbol Mapping feature.
For example:- You send the message with
symbol=EURUSD - Symbol Prefix is i
→ Trades will be placed with thesymbol=iEURUSD
- You send the message with
-
Symbol Suffix: Use this for the Symbol Mapping feature.
For example:- You send the message with
symbol=EURUSD - Symbol Suffix is m
→ Trades will be placed with thesymbol=EURUSDi
→ Using both Symbol Prefix and Symbol Suffix will make itsymbol=iEURUSDm
- You send the message with
Units Mapping Section
-
Point Multiplier: Multiply the Points value in your signal message by this number.
This setting is applied for all message keys that use the Points unit.
For example:- You send the message with
sl=20P. It means 20 points from the entry price. - Point Multiplier is 10
→ Trades will be placed the stop loss level at 20 x 10 = 200 ticks from the entry price.
- You send the message with
-
Size Percent: Configure the base value that Percentage size will use.
This setting is applied for Buy/Sell actions that use the Percentage size unit.
Supported values: Balance, Equity, Free Margin
Trade Filters Section
-
Filter by Magic Number: Turn On/Off this option to filter trades by Magic Number in the General section.
For example:- You turn on this option.
- You have 2 open positions: one has Magic Number 6789 (opened by Trade Sender Connector) and another position has Magic Number 1111 or is empty (opened by another way).
→ A close all signal message will only close the first position since it has the same Magic Number that this Expert is using.
Otherwise, if you turn off this option, both positions will be closed.
-
Trade Start On: Weekday to start trading. All signal messages before this day will not be processed.
-
Trade End On: Weekday to end trading. All signal messages after this day will not be processed.
-
Trade Start Time: Daily time to start trading. All signal messages before this time will not be processed.
- Use the time in hour:minute format.
- It follows the 24-hour format.
- Maximum hour value: 24
- Maximum minute value: 60
-
Trade End Time: Daily time to end trading. All signal messages after this time will not be processed.
- Use the time in hour:minute format.
- It follows the 24-hour format.
- Maximum hour value: 24
- Maximum minute value: 60
-
Max Opening Positions: Maximum number of open positions at the same time.
If a new Buy/Sell signal comes but the maximum is reached, it will not be processed. -
Max Symbol Positions: Maximum number of open positions at the same time per symbol.
-
Max Daily Loss: Maximum total daily loss.
New Buy/Sell signals will not be placed if the daily loss limit is reached.- Fee and commission are not included.
- Use 0 value as no limit.
-
Max Daily Profit: Maximum total daily profit.
New Buy/Sell signals will not be placed if the daily profit limit is reached.- Fee and commission are not included.
- Use 0 value as no limit.
-
Include Positions Profit: Determines which positions to include when calculating daily profit.
Supported values:- All Opening Positions: All open positions are included when counting total profit.
- Just Today Positions: Only positions opened today are included.
- Don't Count Positions: Only closed positions are counted (profit has been realized).
Important notes:
- All filters are applied before placing a new order.
For example: New Buy/Sell signals must comply with trading date and time, and must not exceed opening position or profit limits. - Trade Day and Time: Applied to all signal messages, while other filters apply only to Buy and Sell actions (which affect total positions and profit).
For example:- When Max Opening Positions is reached, you can still send a Close action message, and it will be processed.
- Buy action messages, however, will be ignored if the maximum is reached.
Daily Close Schedule Section
-
Enable Daily Close: Enable or disable the daily close schedule.
-
Daily Close Time: The time to process the daily close schedule.
- Use the time in hour:minute format.
- It follows the 24-hour format.
- Maximum hour value: 24
- Maximum minute value: 60
-
Daily Close Trades: Specify which trades will be closed.
Supported values:- All Positions & Orders: Close all open positions and pending orders.
- Opening Positions: Close only open positions, keep pending orders.
- Winning Positions: Close only positions that are in profit, keep losing positions and pending orders.
- Losing Positions: Close only losing positions, keep winning positions and pending orders.
- Pending Orders: Close only pending orders, keep open positions.
-
Filter by Magic Number: Choose whether to filter trades by the Magic Number defined in the General section. Applies to the daily close schedule only.
Important note: To ensure your trades are processed by your broker, schedule the daily close before the broker’s market close time (if applicable).
Weekly Close Schedule Section
-
Enable Weekly Close: Enable or disable the weekly close schedule.
-
Weekly Close Day: The weekday to process the weekly close schedule.
-
Weekly Close Time: The time to process the weekly close schedule.
- Use the time in hour:minute format.
- It follows the 24-hour format.
- Maximum hour value: 24
- Maximum minute value: 60
-
Weekly Close Trades: Specify which trades will be closed.
Supported values:- All Positions & Orders: Close all open positions and pending orders.
- Opening Positions: Close only open positions, keep pending orders.
- Winning Positions: Close only positions that are in profit, keep losing positions and pending orders.
- Losing Positions: Close only losing positions, keep winning positions and pending orders.
- Pending Orders: Close only pending orders, keep open positions.
-
Filter by Magic Number: Choose whether to filter trades by the Magic Number defined in the General section. Applies to the weekly close schedule only.
Important note: To ensure your trades are processed by your broker, schedule the weekly close before the broker’s market close time (if applicable).