Tradingview, using quandl data

I just discovered that you can use quandl data (from www.quandl.com) on Pine in tradingview.

I have done an basic exercise with avocado.

The code

study("Producer Price Index by Commodity for Farm Products: Avocados", shorttitle="Avocado", precision=2)
quandl_ticker = "QUANDL:FRED/WPU01110205"
data = security(quandl_ticker, "D", close)
plot(data, color=green, style=line)

Using the quandl() function

//@version=4
study("Producer Price Index by Commodity for Farm Products: Avocados", shorttitle="Avocado", precision=2)
dff = quandl("FRED/WPU01110205", barmerge.gaps_off, 0)
plot(dff)

The result

You just want to see the data without comparing

you can add the ticker directly in tradingview and it will show up. In this example is: “QUANDL:FRED/WPU01110205”.

 

Leave a Comment