Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Access the CodeBase from your MetaTrader 5 terminal
Couldn't find the right code? Order it in the Freelance section
How to Write an Expert Advisor or an Indicator

MQL5 Source Codes of Expert Advisors for MetaTrader 5 - 24

icon

Expert Advisors analyze price charts and trade automatically following underlying rules. Here you can find MQL5 source codes solving a variety of problems. You are able to select both simple Expert Advisors based on moving average crossing and complex ones involving complicated signal generation algorithms and protection against trading mistakes.

You can download and launch offered Expert Advisors in MetaTrader 5. It is recommended that you test and optimize trading robots in the Strategy Tester before using them. The library of Expert Advisors is also available directly from MetaTrader 5 platform and MetaEditor development environment.

Submit your code

The Exp_AFL_WinnerV2 Expert Advisor that uses the AFL_WinnerV2 indicator.

Night scalper, trades until 0 am terminal time within a narrow range.

The Expert Advisor averages losing positions based on a particular algorithm.

The Exp_ColorXvaMA_Digit Expert Advisor is based on the ColorXvaMA_Digit indicator color change.

Synchronization of the bars displayed on all open charts of the terminal.

The Exp_StochasticDiff Expert Advisor is based on change of direction of the StochasticDiff indicator.

The Expert Advisor plots a Fibonacci based on the standard ZigZag indicator and traded rectracements from all levels. The levels are fixed and cannot be customized by the user.

The ZZ Fibo Trader is a simple illustration of the use of the Simple ZZ Fibo, which plots Fibonacci lines on long impulse waves of the ZigZag. In addition, the algorithm illustrates operation of the parabolic system for moving the stop loss.

Simple code that illustrates trading based on the OnTimer event. When the timer triggers, the robot alternately performs buy and sell deals with fixed stop loss and take profit values.

ExpBuySellSide is a MetaTrader 5 Expert Advisor based on the ATRStops and StepUpDown indicators.

ExpHAWaves is a MetaTrader 5 Expert Advisor based on the Heiken Ashi and StepUpDown indicators.

ExpPricePosition is a MetaTrader 5 Expert Advisor based on the PricePosition and StepUpDown indicators.

The Exp_CandlesticksBW Expert Advisor based on signals of the CandlesticksBW indicator.

The Exp_PPO_Cloud EA is based on the signals generated by the PPO_Cloud oscillator.

The Exp_PFE_Extr breakout trading system based on the signals of the PFE oscillator.

The Exp_PFE trading system based on the signals of the PFE oscillator.

The breakthrough trading system based on the signals of the i-CAiChannel_System_Digit indicator.

Trading system based on the signals of the i-CAi_StDev indicator.

The Exp_SMI_Correct Expert Advisor is based on the SMI_Correct indicator color change.

The Exp_i-CAi Expert Advisor is based on change of direction of the i-CAi indicator.

Trading system based on AroonOscillatorSignAlert indicator signals.

The Exp_ADXDMI trading system based on the signals of the ADXDMI oscillator.

Trading system based on DarvasBoxes_System indicator signals.

Trading system based on PChannel_System indicator signals.

Trading system based on Donchian_Channels_System indicator signals.

Trading system based on Volume_Weighted_MACandle indicator signals.

An example of creating a trade panel using the MasterWindows library.

Trading system based on Volume_Weighted_MA_Digit_System indicator signals.

Trading system based on JFatl_Digit_System indicator signals.

Trading system based on Fisher_org_v1_Sign indicator signals.

The Exp_Fisher_org_v1 EA is based on the signals generated by the Fisher_org_v1 oscillator.

Trading system based on STLMCandle indicator signals.

The Exp_RVIDiff Expert Advisor is based on change of direction of the RVIDiff indicator.

The Exp_i-SpectrAnalysis_Chaikin Expert Advisor is based on change of direction of the i-SpectrAnalysis_Chaikin indicator.

The Exp_BalanceOfPower_Histogram Expert Advisor is based on change of direction of the BalanceOfPower_Histogram indicator.

Trading system based on wlxBW5Zone indicator signals.

The Exp_i-SpectrAnalysis_WPR Expert Advisor is based on change of direction of the i-SpectrAnalysis_WPR indicator.

The Exp_i-SpectrAnalysis_RVI EA is based on the signals generated by the i-SpectrAnalysis_RVI oscillator.

The Exp_RAVI_Histogram breakout trading system based on the signals of the RAVI_Histogram oscillator.

The SAR Trading System illustrates the operation of the Stop and Reversal (SAR), developed by Welles Wilder. The Expert Advisor check for presence of an open position and starts moving the stop loss with parabolic acceleration.

1...171819202122232425262728293031...37