For example: -> Add symbol (+) -> search bar -> type -> AAPL/GOOG or ((AAPL*2) + (GOOG*3)) / BTCUSD or ... -> press Enter -> the chart will appear and is added to your watchlist
Sometimes you want a script to do something ONLY when the chart is on a particular ticker
For example, you want a draw line at the latest high, only when 'AAPL' is selected for your chart: (if I would use following logic, I would code this differently, this is just for making a simple example)
The same with '((AAPL*2) + (GOOG*3)) / BTCUSD' The syminfo.ticker is actually 'AAPL*2+BATS:GOOG*3)/BITSTAMP:BTCUSD' 😃
->
Cheers!
Note
You can create large combinations, for example: 'MKRUSD+AAVEUSD+CVXUSD+UNIUSD+COMPUSD+INSTUSDT+BALUSD+YFIUSD+BNTUSD+LQTYUSD' (max 10 during testing) To make it easy to copy such a string, you can make an alert:
This idea/script is part of a collection of educational idea's/scripts If you want to return to the open source INDEX page, click here -> Education: INDEX
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.