You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "d:\python\lib\site-packages\rqalpha\strategy.py", line 158, in execute
init(strategy_context)
File "examples/buy_and_hold.py", line 7, in init
context.short_selling_allowed = True
TypeError: short_selling_allowed() takes 1 positional argument but 2 were given
在ricequant平台上策略代码测试可用
The text was updated successfully, but these errors were encountered:
def init(context):
context.short_selling_allowed = True
File "d:\python\lib\site-packages\rqalpha\strategy.py", line 158, in execute
init(strategy_context)
File "examples/buy_and_hold.py", line 7, in init
context.short_selling_allowed = True
TypeError: short_selling_allowed() takes 1 positional argument but 2 were given
在ricequant平台上策略代码测试可用
The text was updated successfully, but these errors were encountered: