Download the source code for the Expert Advisor Programming books below. Be sure to extract the files into the MQL4 or MQL5 folder of your MetaTrader installation folder. Make sure that your ZIP program is set to preserve folder paths.

Hedging Update for Expert Advisor Programming for MetaTrader 5

In March 2016, MetaQuotes updated the MT5 platform to allow MT4-style hedging of positions. If your broker allows hedging accounts, please see the document “Hedging Addendum” in the source code download for more information.

Older Versions