How to setup EA file in Telegram Trade Copier

Telegram Trade Copier
7 min readOct 20, 2020

--

There is a EA file named ForexSignalClient.ex4 located in the download link.

So you can set up this file after downloading to your machine by referring
how to setup EA in your MT4 . After these steps before attaching it to the graph, you need to change options in MT4 as below.

You need to go to “Tools” and then “Options” or you can directly go to the option window with Ctrl + o.

Then you will get below window and go to “Expert Advisors” tab and add “http://localhost/” url to “Allow WebRequest for listed URL:” section. Allow automated trading also should be ticked as below.

After above setup now you can attach ForexSignalClient.ex4 file into the chart. Make sure that you need to attach it to only one graph. It will trade for any pair.

Input Parameters of ForexSignalClient.ex4 file

If you need to change input parameters after attaching it to the chart, you can double click in the file name in right top corner and then go to “input” tab.

Lot value setup

If you need to use a fixed lot for all symbols you can set “true” for “Fixed Lot” field and define the lot value in “Lot Value” field. If you need to define a fixed lot per pair/symbol, you can use “Lot Value Per Symbol” section in the below format
EURUSD:0.02,GBPUSD:0.05,CADUSD:0.01

Apart from that, you can use “Lot Multiplier Per Channel ” also. Here you can define lot multiplier as below. It will multiply the current lot value by the given multiplier value.
TTC_1:1,TTC_2:5

If you need to use dynamic lot value you can set “false” for “Fixed Lot” field and define percentage for “Risk Percentage” field. If you go with risk percentage, you can set the source amount for risk with “Source For Risk”. Possible values for “Source For Risk” are “Account Free Margin” and “Account Balance”.

If you have chosen multiple order entries per tp value and need to split total lot value per entry, you need to set true for “Divide Lot By TP Count”

Symbol setup

You can filter symbols from MT4. let’s say you receive signals from many symbols and you need to disable some symbols in trading. Then you can define each symbols with comma separated in “Excluded Symbol” field as below.
XAUUSD,GBPUSD

Some broker has suffix after the symbol. Let’s say you receive signal EURUSD with standard symbols and your broker’s symbol name is EURUDS.ukv, then you can define “.ukv” in “Symbol Suffix” field.

Risk management setup

When you receive signal without stop loss and take profit values, you can open orders with default values. To enable this functionality, you need to set “true” for “risk_management” field and set default values to below fields
default_stop_loss, default_take_profit

You can control total open order count by “Max Order Count” field. Default value will be the 0 and no any restriction in value 0.

Multiple TP handling

When you receive signals with multiple take profit values, you can either open multiple orders per TP values or open single order for maximum TP value. You can choose the mode that you need in the input parameter by field “multiple TP handle”. In both mode, your stop loss is trailing when you set “true” for “Dynamic Stop Loss” field.

multiple orders mode
When trade action contains multiple TPs, multiple positions are opened for each TP value and moves SL accoridngly IE. And after TP1 hit, TP2 and TP3 order moves SL to entry, and after TP2 hit, TP3 order moves SL to TP1

single order mode
Order is opened to TP3 value and when it hits TP1, order is partially closed with 70% and stop loss is changed to entry price. Then it hits to TP2, order is partially closed with 20% and stop loss is changed to TP1 value. Rest of the order will be closed when it hits TP3 value. Here you can customise this partial close percentage at each tp by “Partial Close Percentage”.

Single Tp Pip Count

If your signal format includes only single tp value, you can set here pip count to move sl to entry. This will move your sl to entry when it reaches that defined pip count.

Lot per TP

If your multiple tp handling mode is multiple orders, you can open each order with different lot values. Let’s say total lot is 0.1 and you are going to split it 0.07,0.02,0.01 among each tp level. Then you need to set 0.07,0.02,0.01 to the field “lot per tp”. The same behavior can be obtained with single order mode bt setting 70,20,10 for “partial close percentage”

Channel setup

If you need to filter channels from MT4, you can use “channel_validation” and “support_channels”. in default setup, channels are not filtered and all configured channels in TTC will be worked in MT4. If you need to filter, set “true” for “channel_validation” and add channel names with comma separated to “support_channels” as below. Make sure to use same name as you configure in TTC.
TTC_1,TTC_2,test channel

Pending order pip distance

The default value will be 0 to disable this functionality. This is working only if your signal is received with order action as “SELL” or “BUY”. If order action in your signal will be “SELL STOP”, “SELL LIMIT”, “BUY STOP” or “BUY LIMIT”, this field will not be considered, and always order will be open as a pending order. So by using this functionality, you can make a “BUY” or “SELL” order into pending order if its entry price is hugely spread from the actual market price. If your signal is received without entry price, it always will open as a market order. So when we define pip count in“pending order pip distance”, if the difference between your entry price and actual price is higher than that pip count, it will be a pending order, and if not it will be a market order.

Always open pending order

This can be set to true, If you need to convert all orders to pending order. Only if your signal entry price is very closer to market price, it will open as market orders and otherthan that order will be converted to pending order at signal entry price.

Reject orders with price difference

If you set a pip count for pending order pip distance and when difference of order’s actual price and signal price is larger than that defined pip distance, orders will be rejected according to this defined values. If you set it to false, such a validation will not be happened.

Avoid alert

For troubleshooting purposes, we add all entries to the alert window in MT4. But if you need to get rid of these alerts, you can disable them by setting “true” to this field.

Bulk update per symbol

Normally, the system will detect updates when an update message is received as a reply message to the original message. But some signal providers send a “close EURUSD” update message as a new message. The system can detect those updates also when this signal is received, MT4 will close all orders in that specific symbol. So if you need to avoid this feature you can disable this functionality by setting “false” to the above field.

Entry adjust pips

When TTC receive, breakeven signal or when it automatically moves SL to entry, it considers on this pip count to adjust your entry to claim the commission amounts. If this is 0, it moves SL only to entry and if we define some pip it will move SL to ENTRY (+/-) entry adjust pip distance.

Divide lot by tp count

When you enable fixed lot and if you have multiple tp values, lot will be that fixed lot value and equal for each order. but if you need to split that among multiple orders, you need to set true for this field.

Total order count when tp is not there

Some signals are initially received without any tp value. So if you need to open multiple orders for such orders, you can set a count and it will open multiple orders in such scenarios.

Reject orders which are without stop loss

If you need to avoid opening orders without stop loss to protect your account, you can set true here.

TP Mode/ SL Mode

Possible values for TP and SL mode are mendtioned below.
1. Always Take From Signal
2. Always Take From Default
3. Take From Default If Not In Signal
4. Do Not Use From Any
According to your requirement, you can set any value for mode. If you set option 2 or 3, you need to define “Default Stop Loss” and “Default Take Profit” in pips.

Total order count when tp is not there

Some signal providers sends signal without tp value and later they edit original signal or reply with tp values. But as tp is not there in initial signal, only single entry is open for multipe tps. So this feature can be used to open multiple orders per tp. Then tp will be updated by signal automatically.

Pip count multiplier per symbol

EA has multiple of pip setting feilds. If you need to set pips multipler for perticular symbol you can set in this field.
XAUUSD:10,US30:100

--

--

Telegram Trade Copier
Telegram Trade Copier

Written by Telegram Trade Copier

TelegramTradeCopier is a standalone desktop application to forward private telegram messages to MT4, Fully automatically. Such you can trade in real-time

No responses yet