Better yet, write your script in Lite C, optimize in Lite C, and connect Zorro to the MT5 bridge.

https://zorro-trader.com/features.php
https://zorro-project.com/manual/en/conversion.htm
https://zorro-project.com/manual/en/mt4plugin.htm