The solution comprises 2 distinctive parts:
- original file MT5Bridge.mqh, which contains all definitions and wrappers to mimic MetaTrader 5 trading API;
- collection of header files, taken from MetaTrader 5 library and adapted in such a way that they use the stuff from MT5Bridge;
AccountInfo.mqh
DealInfo.mqh
HistoryOrderInfo.mqh
OrderInfo.mqh
PositionInfo.mqh
SymbolInfo.mqh
TerminalInfo.mqh
Trade.mqh
\Expert\
Expert.mqh
ExpertBase.mqh
ExpertMoney.mqh
ExpertSignal.mqh
ExpertTrade.mqh
ExpertTrailing.mqh
\Money\
MoneyFixedLot.mqh
MoneyFixedMargin.mqh
MoneyFixedRisk.mqh
MoneyNone.mqh
MoneySizeOptimized.mqh
\Signal\
SignalAC.mqh
SignalAMA.mqh
SignalAO.mqh
SignalBearsPower.mqh
SignalBullsPower.mqh
SignalCCI.mqh
SignalDEMA.mqh
SignalDeMarker.mqh
SignalEnvelopes.mqh
SignalFrAMA.mqh
SignalITF.mqh
SignalMA.mqh
SignalMACD.mqh
SignalRSI.mqh
SignalRVI.mqh
SignalSAR.mqh
SignalStoch.mqh
SignalTEMA.mqh
SignalTRIX.mqh
SignalWPR.mqh
\MySignals\
3LineBreakSignal.mqh
ASCtrendSignal.mqh
FiboCandlesSignal.mqh
KaracaticaSignal.mqh
LaguerreSignal.mqh
StalinSignal.mqh
SuperTrendSignal.mqh
WPRSISignal.mqh
\Trailing\
TrailingFixedPips.mqh
TrailingMA.mqh
TrailingNone.mqh
TrailingParabolicSAR.mqh
\Models\
Model.mqh
model_amacross.mqh
model_bollinger.mqh
model_ma.mqh
model_macd.mqh
\Indicators\
TimeSeriesExt.mqh
IndicatorsExt.mqh
While unzipping the archive, make sure you use a program which preserves the structure of subfolders (most of file managers do). All the stuff should be placed inside MQL4\Include folder.

MetaTrader 4 tester report for ExpertMAPSAR EA generated by MetaTrader 5 Wizard

ExpertMAPSAR generated in MetaTrader 5 is running in MetaTrader 4

MetaTrader 4 tester log for ExpertMAPSAR EA generated by MetaTrader 5 Wizard
Disclaimer
I don't use the standard library in my works, nor am I an expert in its codes. If you find a bug, send me a fix. The software is distributed "as is", without warranties of any kind including compliance with specific requirements and absence of errors.
All source codes are available freely. If you want to support this project, please, consider buying one of my products in the Market.
Technical details are covered in the articels:
- Russian - Готовые советники из Мастера MQL5 работают в MetaTrader 4
- English - TBD


