Type/to search
0
Follow
0
Followers
A estratégia funciona normalmente durante o backtesting simulado, mas ocorre um erro quando ela é iniciada em trading real. Como posso resolver esse problema?
Help
Created 2021-12-21 19:36:02  
 3
 1014

A estratégia escrita pode ser usada normalmente em um disco simulado, escrito em linguagem Python, com um relatório de erro no disco real, o relatório de erro é o seguinte, por favor, como resolver?
Traceback (most recent call last): File "<string>", line 999, in init_ctx File "<string>", line 43 ) -> None: ^ SyntaxError: invalid syntax

Related Recommendations
Comment
All comments (3)

    应该是你43行写错语法了

    5 years ago

    感谢,原来是python3和python2语法兼容的问题,python3支持使用->的形式定义函数返回值,python2不支持

    5 years ago

    原来如此

    5 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)