TheSnowGuru/PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Python connector for MetaTrader 4 and MetaTrader 5 that lets my script talk to a trading terminal through a lightweight EA. I want to be able to log in, keep the connection alive, read account details, get open orders, fetch the latest tick and bar data, and place, change, and close trades from Python.

Please make it easy to set up, with a clear example script I can run right away, and support for demo mode too. It should work even if the trading terminal is on another machine, as long as they can connect over the network. If you need to check the latest MetaTrader or Python docs online, do that.

Also include a clean way to load instrument settings like pip value and tick size, plus a couple of simple sample strategies or usage examples so I can see how it all fits together.

Are you gonna build this?

make sure you review the code using arcumet

Try freeSponsored — opens Arcumet in a new tab