Attachments forums

APEX MicroStructure EA (fixed)

ionone, Fri Sep 04, 2026 5:23 pm

"A fully automated Expert Advisor for MetaTrader 5 that combines 8 order flow and microstructure signals into a weighted composite scoring engine. Designed for intraday scalping on liquid FX and futures instruments during high-volume sessions."


I found this EA on GitHub and it looks interesting enough

I wasn't able to make it profitable, but it has a lot of settings so maybe you can find a profitable setting

I fixed the EA using ChatGPT:
  • OBI is explicitly disabled in the Strategy Tester — the original code returns TESTER: N/A.
  • VPIN has a bug: its tick-consumption loop effectively processes only one new tick, so VPIN buckets may never form correctly.
  • TradeManager forces ORDER_FILLING_IOC, which can be rejected by the tester/broker depending on the symbol's supported filling mode


just extract the zip file into a folder inside Experts folder
set TimeFrame to M1 and use "every tick based on history"

the backtest can't simulate Order Book data so live trading will be different from backtests

please share settings if you find somethign working, thanks

https://github.com/CampeloMarcos/mt5-mi ... re-scalper
All files in topic