generate_trade_frequency function

generate_trade_frequency function