BAKOME-Hub/BAKOMEGoldScalper — reverse-engineered prompt

Reverse engineered prompt

Build me a MetaTrader 5 expert advisor for trading gold on XAUUSD, mainly on the M5 chart. I want it to be an ICT style scalper that can spot fair value gaps, order blocks, liquidity sweeps, and use Silver Bullet time windows during London and New York sessions, with Asian session optional.

Please make it feel production ready, not like a toy bot. It should size trades automatically based on risk, use ATR for stop loss and take profit logic, respect spread and volatility filters, stop trading after daily loss or profit limits, cap the number of trades per day, and support break even, trailing stop, and optional partial closes. I also want a simple higher timeframe bias using H1 and H4 trend direction before entries.

Make sure it has solid logging, error handling, and retry logic so it can run reliably in MT5. Optimized default settings for XAUUSD would be great. If anything is unclear, check current MQL5 docs online and make the whole thing easy to compile and attach to a chart.

Want more depth? Deep Reverse