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)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.