Python

While HaasScript is based on Lua, it is not a one-to-one conversion with Python. While some of the basic syntax may be similar, the functions and libraries used in Python are not available in HaasScript.

That being said, it is possible to manually translate Python code into HaasScript code by identifying the equivalent functions and libraries in HaasScript and adjusting the syntax accordingly. However, this can be a time-consuming process and may require significant knowledge of both languages.

It is recommended to write HaasScript code directly in the HaasOnline TradeServer platform or to use the HaasScript editor to create custom indicators and bots.

Back to: HaasScript Fundamentals > Converting Other Languages