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
JavaScript
x
6
1
src = input(close, title="Source")
2
3
price = security(syminfo.tickerid, timeframe.period, src)
4
5
plot(price)
6
Here ticker id I used to display the current price on the chart
reference intradaygeeks contact if need more help twitter