Type/to search
0
Follow
0
Followers
La estrategia funciona normalmente durante el backtesting simulado, pero se produce un error cuando se inicia en el trading real. ¿Cómo puedo solucionar este problema?
Help
Created 2021-12-21 19:36:02  
 3
 1014

La política escrita en el disco simulado puede usarse correctamente, está escrita en lenguaje python, en el disco real, el mensaje de error es el siguiente, por favor, ¿cómo solucionarlo?
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)