Type/to search
0
Follow
0
Followers
Beim simulierten Backtesting funktioniert die Strategie normal, beim Start im realen Handel tritt jedoch ein Fehler auf. Wie kann ich dieses Problem lösen?
Help
Created 2021-12-21 19:36:02  
 3
 1012

Die geschriebene Strategie kann auf der Simulationsscheibe verwendet werden, in der Sprache Python geschrieben, in der Festplatte Fehlermeldung, Fehlermeldung wie folgt, bitte, wie man es löst?
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)