How can I use the ta.correlation function in PineScript (Tradingview) to show the correlation of two different symbols?
Posted: Wed Jul 20, 2022 2:05 pm
I am new to Pine and my problem is that when using the ta.correlation function, I can't figure out how to define two different symbols for which the correlation is displayed.
I only manage to load in as input the price data (with close, open etc. ) from the same symbol, which of course makes little sense.
How do I have to proceed further? Do I have to load another symbol with request.security first?
Thanks in advance :)
I only manage to load in as input the price data (with close, open etc. ) from the same symbol, which of course makes little sense.
How do I have to proceed further? Do I have to load another symbol with request.security first?
Thanks in advance :)