I'm having an interest to learn creating volume profile. But I'm quite confused of how to start the script to calculate every given timeframe. Example: if the timeframe period is "D", start calculating, else if it's the next day... break. You guys got any idea? Please help.
Truly no idea what to do. Need to specify a price...
range_ = ta.highest(high, timeframe.period) - ta.lowest(low, timeframe.period)
But it's not working cause in needs simple int and not simple string. So how can I convert the string to int?
