4. Set up the cTrader copier.
*****
cTrader Copier Settings
1. 'Long Trade Switch' & 'Short Trade Switch' - Enable or disable long and short trades separately.
2. Lot Mode - Choose "fixed lot" (the default) or "Follow Lot Info from TradingView". Set the quantity in "Fixed Lot", or follow the lot parsing instructions below.
3. Symbol Mapping List - Map TradingView symbols to cTrader symbols. By default, the copier assumes the names are identical.
For example:
GOLD,XAUUSD;SILVER,XAGUSD;
TradingView GOLD alerts are mapped to XAUUSD in cTrader.
Separate the TradingView and cTrader symbols with a comma, and end each mapping with a semicolon.
4. Close Trade By Oppposite Signal - Enabled by default (yes). Before opening a new long or short trade, the copier closes positions in the opposite direction, following TradingView netting behavior. Set to no if you do not want this.
5. TP & SL in ticks - Both default to zero (disabled).
6. Alert Parsing Settings
Keywords for LONG or SHORT trade - The copier includes common keywords for identifying LONG and SHORT signals. Add your own keywords separated by commas.
Excluded keywords from opening trade - Do not open a trade if the alert contains any of these keywords.
Enable close trade keywords - Enable keyword matching to close trades.
Keywords to close LONG or SHORT trade - Close trades when an alert contains these keywords.
To close all trades, enter the relevant keywords in "Keywords to close both LONG & SHORT trades".
If a close alert contains a percentage, the copier partially closes the matching trades by that percentage. For example, "close long 50%" closes half of the applicable long positions.
Taking TP price from TradingView
Disabled by default. When enabled, the cBot uses TP prices specified in TradingView alerts.
Taking SL price from TradingView
Disabled by default. When enabled, the cBot uses SL prices specified in TradingView alerts.
For example, if a TradingView alert uses this TP/SL format:
BUY TP:1.06218, SL:1.03218
To parse this message, use the following settings:
Set the TP price head string to:
TP:
Set the SL price head string to:
SL:
'Close by Trade ID' feature
This feature supports closing specific trades in TradingView martingale strategies. It is disabled by default.
1. Add a trade ID to the comment or alert_message field of strategy.entry and strategy.exit in your TradingView strategy.
e.g. trade entry:
LONG ID:LONG#1
LONG ID:LONG#2
trade exit
CLOSE LONG ID:LONG#1
CLOSE LONG ID:LONG#2
2. In the cTrader copier:
"Close trades by ID" - Set to true.
"ID head string" - Set to ID: to identify the start of the ID.
"ID tail string" - Leave blank for the examples above, which have no text after the ID.
* Allowed symbol list from TradingView alerts
Leave this field blank to accept alerts for all symbols. To restrict copying, enter allowed symbols separated by commas, for example: EURUSD,GBPUSD. If cTrader uses different symbol names, also configure "Symbol Mapping List".
Using Lot Information from TradingView Alerts
1. Select "Lot info from TradingView" in "Lots mode".
2. Set the head and tail strings used to identify lot information in the alert.
"TradingView Lot Info Head String" - The default is "Lot:".
For example:
Buy Lot:2
The copier will open a trade of 2 lots.
The head and tail strings identify the text immediately before and after the lot number.
3. TradingView lot info to cTrader ratio
The default is 1.0. With a ratio of 0.1, a TradingView lot value of 2 becomes 0.2 lots in the copied trade.
=====
Special Note: An Alternative Method for Receiving TradingView Alerts
1. By default, the bridge reads alert popups in the browser.
2. Alternatively, it can read messages from the TradingView alert log panel. This can be more reliable if your connection to TradingView is unstable.
3. This method requires the following:
- Keep the TradingView alert log panel visible, as shown below.
- Keep the browser window open; do not minimize it.
- Set the TradingView page language to English.
4. To enable this method:
- Add this line below license_key=xxxx in config.ini:
tvbridge2=on
- Save config.ini.
- Restart TVCopier.
5. The app displays a message when it detects the visible TradingView alert log panel.
If the alert log is initially empty, the app waits three seconds to confirm that no messages are present.