I have an existing v4 pinescript script that creates a buy alert for use in the crypto market. the script refers to the chart tickerid. i want to add an additional condition whereby the script looks at the RSI of another tickerid (a common market cap ticker such as tradingview - "TOTAL").
i need assistance in adding the secondary ticker into the script. thanks all.
Use the request.security function: https://www.tradingview.com/pine-script-reference/v5/#fun_request{dot}security
sec = request.security("TOTAL", timeframe.period, my_rsi)