TRADINGVIEW ALERTS TO TRADOVATE TRADE COPIER

 

This is the user guide for 'TradingView alerts to Tradovate' Trade Copier.






Reminders:


1. This copier is to fetch TradingView 'alerts' generated by TradingView indicator or strategy and then convert that alert signal to trade actions on Tradovate accounts.  

If you want to copy TradingView Tradovate account *trades* to other Tradovate accounts, please use 'Tradovate Group Copier': https://boolapi.blogspot.com/2024/12/tradovate-group-copier.html


Please note this copier suite does *not* use Tradovate API.  It sends out trading requests to Tradovate server directly from your own machine.


2.  This copier uses local Chrome browser to fetch TradingView alert signal and then copies trades to Tradovate. No webtrader is required.

This adhoc approach requires Windows 10 or 11 or Windows Server 2016 or above environment. 


3. This copier can work on futures prop firm demo/practice accounts and also support concurrent copy to multiple accounts of different prop firms.


4. If a TradingView strategy order flow is:

trade action: long -> short -> long -> short -> short

its net lot position shown on TradingView backtest drawing will be:

1 -> -1 -> 1 -> -1 -> -2

1 -> -1 should be 1 -> 0 -> -1 but TradingView strategy auto close the prior opposite position without waiting for a close signal.

as such, to comply with TradingView signal flow, this copier will do the following

- when receive a new long signal from TradingView alert signal
- to check if any open short position at Tradovate first
- if yes, close all short positions at Tradovate
- then open a new long order to Tradovate

vice versa for short signal


5. Unlike another design of 'MT4/MT5 to Tradovate' copier, this copier can support to copy TP/SL tick value at TradingView alert message as separate oco limit/stop orders at Tradovate.


6. The copied order id shown on the bridge log window is the response when Tradovate server receives it.  You will need to check its actual execution result at Tradovate webtrader.




=== TVCopier setup ===



1. Unzip TVCopier.zip 



2. Open config.ini file from unzipped folder



3. Fill in your license key at

license_key=

e.g.

license_key=taigk97+tvtotdv@gmail.com




4. Below are the sample for variable inputs of 'Trading Platform Settings' section



platform=Tradovate
login_user_name=taigk97@yahoo.com
login_password=XXXXX
login_server=
account_name=DEMO3878733
login_account_type=DEMO
login_broker_id=0
symbol_mapping_list=ES1!,MESZ4;BTCUSD,MBTX4;AUDUSD,M6AZ4;
lot_mode=fixed
lot_fixed_size=1
lot_multiplier=1
reverse_trade=false



platform=

please input Tradovate


login_user_name=

your Tradovate login user name


login_password=

your Tradovate login password


account_name=

Input your Tradovate account name

that account name is shown at Tradovate webtrader top menu bar.  

at below example screenshot,

DEMO3878733

is the account name.




login_account_type=

Input either DEMO or LIVE



symbol_mapping_list=

TradingView symbol, then comma, Tradovate symbol name, then semi-colon

e.g.

MES1!,MESH5;MYM1!,MYMH5;MNQ1!,MNQH5;


Note: please set symbol mapping even TradingView symbol name is the *same* with Tradovate's.  this copier needs to extract Tradovate symbol name to get symbol property info for further process.


lot_mode=fixed

lot_fixed_size=1

lot_multiplier=1

Default is fixed.  copier will use the 'lot_fixed_size' as copy order lot.  

If set to follow, copier will parse tradingview alert text if containing tv_lot_text_tag variable value



reverse_trade=false

Default is *not* to reverse TradingView trading signal.  if set to true, all signals will be reversed (i.e. long to be short, vice versa)



If you want to copy to multiple Tradovate accounts, just copy paste above input section and make another set with different login credential.  

Kindly be aware Tradovate has restriction on multiple account login from one computer/VPS - but the actual number is not explicitly mentioned at their public document.  You could try few first.



- Launch TVCopier app from unzipped folder.  


click 'TradingView' button to launch a new session of Chrome.  Input your TradingView login credential at that Chrome






- If you uses Gmail email as TradingView login account, please login at 'email' section other than Google section




- if you have any concern on this login method, you could enable TradingView 2FA login.
 

- keep one TradingView chart open.  Enable one alert for test.


Enable your indicator or stragegy alert at the indicator menu by selecting 'Add alert on xxxxx'




This copier is to fetch TradingView alert popup.  Please ensure you've selected 'Show toast notification' at that alert setup window.






- click 'Target Start' button to login your target trading platform.







- If any change on config.ini (except license key change that requires to restart TVCopier app), please save it and then click 'Target Start' button to stop and click it again to reload.


- If you have multiple account/platform to copy, please duplicate above variable with different login credential at config.ini and then save and click 'Target Start' button again.



- below variables are for TradingView alert signal parsing:



=== Variables for Signal Conversion ===



long_keywords=buy,long,up,bullish,bull

if any keyword is included at TradingView alert text, it will be treated as NEW LONG signal.  Modify it or add with comma separator

short_keywords=sell,short,down,bearish,bear

if any keyword is included, it will be treated as NEW SHORT signal.

exclude_trade_keywords=close,exit

If any exclude keyword is included, it won't be treated as new trade signal.

close_long_keywords=closebuy,closelong,close buy,buy close,close long,long close,exit buy,buy exit,exit long,long exit

If any keyword is included, it will be treated as CLOSE LONG signal.

close_Short_keywords=closesell,closeshort,close sell,sell close,close short,short close,exit sell,sell exit,exit short,short exit

If any keyword is included, it will be treated as CLOSE SHORT signal.

close_all_keywords=close,exit

If any keyword is included, it will be treated as CLOSE ALL signal.  The priority of match sequence is lower than previous two.

tv_lot_text_tag=Lot:

If lot_mode set to follow, copier will parse out the lot value with this header text

e.g.

BUY, Lot: 0.02

0.02 will be parsed

tv_tp_text_tag=TP:

e.g.

BUY TP:200

200 will be parsed out as TP pips distance.  pip unit is Tradovate future symbol's.

tv_sl_text_tag=SL:

e.g.

SELL SL: 500

500 will be parsed out as SL pips distance.  pip unit is Tradovate futures symbol's.


---> The other TradingView alert relevant copiers at webstore use TP/SL in *price* other than in *tick*.  Kindly be aware of this difference.



* If any change on config.ini, please save it and click 'Target Start' button to stop and click it again to reload.









Popular posts from this blog

FREE EVALUATION WITH LIMITED SYMBOLS

TRADE COPIER USER GUIDE LIST

METATRADER TO NINJATRADER TRADE COPIER