'plotting Candles as Seconds Timefame/ Chart(TradingView/Pinescript)
is there a way to plot candles as Seconds Timeframe, without using a timeframe.isseconds. found a calculation but i cant plot candle on it.
// calculate bar time
current_minute := math.floor(timenow / (5* 1000))
'5' as 5 Seconds
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|