OHLCHelper.gen_trades
You're seeing just the function
gen_trades
, go back to OHLCHelper module for more information.
Link to this function
gen_trades(timeframe, min_price, max_price, volume, timeframe_multiplier \\ 1, timeframe_divider \\ 1)
This function is deprecated. Will be removed in v2.x. Use OHLCFactory.gen_trades/1 instead..
Specs
Generates trades from provided arguments.
Parameters:
timeframe
- Timeframe used for rounding the timestamp. Available values are::minute
,:hour
,:day
,:week
min_price
- The minimum price on the generated tradesmax_price
- The maximum price on the generated tradesvolume
- The volume each trade hastimeframe_multiplier
- If you'd like to generate less trades per candle then you can increase the size of the timeframe_divider parameter(1-100) otherwise leave empty.timeframe_divider
- Is used for generating multiple candles of the same timeframe.