TRADINGVIEW ALERTS TO CTRADER COPIER

 


The TradingView Alerts to cTrader copier consists of three parts:


- Google Chrome installed on your computer

- TVBridge, a Windows app that receives TradingView alerts through Chrome

- TVToCTraderCopier, a cTrader cBot that receives signals from TVBridge and places copied trades


Operating system: Windows 10 or 11, or Windows Server 2016 or later.




The delivery package includes one ZIP file and one cTrader cBot (.algo) file.


1. Extract TVBridge.zip. It requires 64-bit Windows 10 or 11, or Windows Server 2016 or later.

2. Enter your license key in config.ini in the extracted folder.

For example:

license_key=abc@gmail.com

Save the file.



You can also set the Chrome window height, width, and sound options in config.ini.


Install Chrome on your computer or VPS before starting the bridge app.


3. Run TVBridge.exe. Wait for "Ready to start", then click "Start".




The bridge log displays a reminder:

a special Chrome session has started. Log in to TradingView in that window. Click "Start" again to close it, and close the Chrome session before exiting the bridge app.


The app opens a special Chrome session with the TradingView home page.




Log in to TradingView in that Chrome window.


If you use Gmail to log in to TradingView, select "Email" rather than "Google" on the login page.



You can enable TradingView two-factor authentication (2FA) for additional login protection.

Keep at least one TradingView chart open while receiving alerts.





Create an alert for your indicator or strategy by selecting "Add alert on xxxxx" in its menu.




This copier reads TradingView alert popups. Select "Show toast notification" in the alert settings.




4. Set up the cTrader copier.


Open the Documents folder on your computer.


Go to \cAlgo\Sources\Robots.


Move TVToCTraderCopier.algo into the Robots folder.


Use a demo account to familiarize yourself with the copier first.


Select the Trade tab in cTrader, open any chart, and attach the Copier cBot. The Algo tab is for backtesting.



5. Click the cBot icon in the cTrader menu to open the list, then select TVToCTraderCopier.

Allow full access when prompted. The cBot uses internal Windows data exchange to communicate with the bridge app.


Click the > button to start the cBot. The button turns red while it is running.


*****



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.



Popular posts from this blog

TRADE COPIER USER GUIDE LIST

FREE EVALUATION WITH LIMITED SYMBOLS

METATRADER TO TRADELOCKER TRADE COPIER - NON API APPROACH