Tzigger/MT5_trading_bot — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Python trading assistant that connects to MetaTrader 5 and uses GPT 4 to look at live market data, then tells me whether to BUY or SELL.

It should pull recent OHLC candles and tick data from MetaTrader 5 in real time, send the important market context to GPT 4, and print a clear recommendation with the entry price, stop loss, and take profit. I want it to be easy to change the trading symbol, timeframe, lot size, and strategy rules without digging through a lot of code.

Please make it practical for someone running it locally, with simple setup instructions, environment variables for any API keys, and basic error handling if MetaTrader 5 is not connected or data is missing. Keep the output readable in the terminal so I can quickly understand the signal. Look up current MetaTrader 5 and OpenAI docs online if you need to.

Want more depth? Deep Reverse