实现单品种连续多合约回测
This commit is contained in:
@@ -101,10 +101,10 @@ class SimpleLimitBuyStrategy(Strategy):
|
||||
order = Order(
|
||||
id=order_id,
|
||||
symbol=self.symbol,
|
||||
direction="SELL",
|
||||
direction="BUY",
|
||||
volume=trade_volume,
|
||||
price_type="LIMIT",
|
||||
limit_price=limit_price,
|
||||
price_type="MARKET",
|
||||
# limit_price=limit_price,
|
||||
submitted_time=bar.datetime
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user