OHLC.convert_timeframe
You're seeing just the function
convert_timeframe
, go back to OHLC module for more information.
Link to this function
convert_timeframe(candles, timeframe)
Specs
Coverts candles to new timeframe.
Parameters:
candles
- A list of candles.
timeframe
- Must be higher then the existing candles timeframe.
For example if candles were previously created using :hour timeframe
then the provided timeframe cannot be :minute.
Returns a tuple containing the list of candles with converted timeframe.