@yl2023 改为if market_down_ratio < = -g.stoploss_market:为什么报错了,Traceback (most recent call last):
File "/tmp/jqcore/jqboson/jqboson/core/entry.py", line 379, in _run
engine.start()
File "/tmp/jqcore/jqboson/jqboson/core/engine.py", line 235, in start
self._load()
File "/tmp/jqcore/jqboson/jqboson/core/engine.py", line 223, in _load
self._strategy.setup(self._context)
File "/tmp/jqcore/jqboson/jqboson/core/strategy.py", line 728, in setup
self._load(context)
File "/tmp/jqcore/jqboson/jqboson/core/strategy.py", line 249, in _load
self._module = self._loader.load(context)
File "/tmp/jqcore/jqboson/jqboson/core/loader.py", line 112, in load
dont_inherit=True)
File "/tmp/strategy/user_code.py", line 224
if market_down_ratio < = -g.stoploss_market:
^
SyntaxError: invalid syntax
@Zab8888jukuan
首页量化研究平台聚宽社区帮助聚宽投资本地数据平台会员61
debug3_check_remain_amoun止盈补仓失败-Clone-Clone 编辑策略 回测详情 编译运行列表 回测列表
设置: 2024-12-01 到 2025-07-07, ¥100000, 每天 状态: 回测失败,实际耗时00分03秒 Python3
收益概述
交易详情
每日持仓&收益
日志输出
性能分析
策略代码
策略收益
基准收益
阿尔法
贝塔
夏普比率
索提诺比率
信息比率
波动率
基准波动率
最大回撤
日志输出错误日志
Traceback (most recent call last):
File "/tmp/jqcore/jqboson/jqboson/plugin/web.py", line 86, in import_
code = read_file(path)
File "/tmp/jqcore/jqcommon/jqcommon/retrying.py", line 55, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "/tmp/jqcore/jqcommon/jqcommon/retrying.py", line 231, in call
return attempt.get(self._wrap_exception)
File "/tmp/jqcore/jqcommon/jqcommon/retrying.py", line 275, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "six.py", line 693, in reraise
raise value
File "/tmp/jqcore/jqcommon/jqcommon/retrying.py", line 225, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "/tmp/jqcore/jqboson/jqboson/api/settings.py", line 637, in read_file
raise ReadRemoteFileError('read_file %s: %s' % (path, res.text))
jqboson.core.exception.ReadRemoteFileError: read_file MyTT.py: 文件'/opt/research-files/361/36160472739/MyTT.py'不存在
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/jqcore/jqboson/jqboson/plugin/web.py", line 108, in import_
code = read_file(path)
File "/tmp/jqcore/jqcommon/jqcommon/retrying.py", line 55, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "/tmp/jqcore/jqcommon/jqcommon/retrying.py", line 231, in call
return attempt.get(self._wrap_exception)
File "/tmp/jqcore/jqcommon/jqcommon/retrying.py", line 275, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "six.py", line 693, in reraise
raise value
File "/tmp/jqcore/jqcommon/jqcommon/retrying.py", line 225, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "/tmp/jqcore/jqboson/jqboson/api/settings.py", line 637, in read_file
raise ReadRemoteFileError('read_file %s: %s' % (path, res.text))
jqboson.core.exception.ReadRemoteFileError: read_file MyTT.so: 文件'/opt/research-files/361/36160472739/MyTT.so'不存在
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/jqcore/jqboson/jqboson/core/entry.py", line 379, in _run
engine.start()
File "/tmp/jqcore/jqboson/jqboson/core/engine.py", line 235, in start
self._load()
File "/tmp/jqcore/jqboson/jqboson/core/engine.py", line 223, in _load
self._strategy.setup(self._context)
File "/tmp/jqcore/jqboson/jqboson/core/strategy.py", line 728, in setup
self._load(context)
File "/tmp/jqcore/jqboson/jqboson/core/strategy.py", line 249, in _load
self._module = self._loader.load(context)
File "/tmp/jqcore/jqboson/jqboson/core/loader.py", line 113, in load
exec(code, module.__dict__)
File "/tmp/strategy/user_code.py", line 18, in < module>
import MyTT
File "/tmp/jqcore/jqboson/jqboson/plugin/web.py", line 119, in import_
raise _ImportError("导入错误,未找到系统库或自定义库 {}".format(name))
ModuleNotFoundError: 导入错误,未找到系统库或自定义库 MyTT