Skip to content
Advertisement

How to Access data of current price of stocks in Pine Editor Tradingview using ticker id

i want to code indicator in my tradingview pine editor, for that, I need the current price of a stock or any other scrip to my coding keyword to do operations and generate new output on chart,

Advertisement

Answer

Try this

src = input(close, title="Source")

price = security(syminfo.tickerid, timeframe.period, src)

plot(price) 

Here ticker id I used to display the current price on the chart

reference intradaygeeks contact if need more help twitter

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement