解决方案pyalgotrade errror:Not enough volume to fill EURAUD market order [680] for 10 share/s
pyalgotrade运行出现以下错误信息:
Not enough volume to fill EURAUD market order [680] for 10 share/s
说明历史数据中Volume的值小于你要成交的仓位,可以用在
class MyStrategy(strategy.BacktestingStrategy): def __init__(self, feed, instrument, smaPeriod): super(MyStrategy, self).__init__(feed, 1000) self.__position = None self.__instrument = instrument self.getBroker().getFillStrategy().setVolumeLimit(None)
self.getBroker().getFillStrategy().setVolumeLimit(None)