等级: 免费版
- 注册:
- 2022-4-2
- 曾用名:
|
楼主 |
发表于 2024-11-18 14:40
|
显示全部楼层
if code in context.blocks["多策略"]:
indicators['短线1m'] = safe_get_indicator(code, '短箭1m', 'cc0', "10,2,4,20", '1m', 300000)
indicators['短线3m'] = safe_get_indicator(code, '短箭', 'cc0', "10,2,5,20", '3m', 100000)
indicators['中线5m'] = safe_get_indicator(code, '中箭', 'cc0', "9,8,3,20", '5m', 60000)
indicators['长线10m'] = safe_get_indicator(code, '长箭', 'cc0', "7,13,6,20", '10m', 30000)
else:
indicators['短线1m'] = 0
indicators['短线3m'] = 0
indicators['中线5m'] = 0
indicators['长线10m'] = 0 |
|