Relative Content

Tag Archive for pine-scriptpine-script-v5

PineScript plotCandles: how to plot candles dynamically

I have a historical set of data that I need to show as candles in tradingView. For this, I’m thinking of store in arrays each open,high,low and close data and next use plotCandle function to plot the data. The thing is that I haven’t found how to loop that arrays to use plotCandle on each iteration and synchronize the data with the date it was generated.