Download MetaTrader 5

Watch how to download trading robots for free

Find us on Facebook!
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 Code Library for MetaTrader 5 - 35

This is the largest free source code library for MetaTrader 5 platform programs. Here you can find ready-made Expert Advisors, technical indicators, scripts and libraries. Use the code library when learning MQL5 language and develop your own automated trading applications based on the provided codes.

You can freely download and test published codes, as well as launch them in MetaTrader 5. The library is also available directly from MetaTrader 5 platform and MetaEditor development environment.

latest|best

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

The indicator plots price channel, Fibonacci levels and Gann fan based on the latest ZigZag peaks.

The i-CAi_StDev indicator with the timeframe selection option available in input parameters.

More experiments with the Simple ZigZag indicator. A small upgrade allows the indicator to find and mark the price consolidation areas with colored rectangles.

The yEffekt indicator with the timeframe selection option available in input parameters.

The i-CAi indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

Variation of the SMI indicator based on the "Momentum, Direction, and Divergence" book by Blau.

The ZZLevels indicator uses the Simple ZigZag to find the boundaries of the flat, as well as the support and resistance levels.

The i-CAi indicator with the timeframe selection option available in input parameters.

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

The dTrend indicator with the timeframe selection option available in input parameters.

The indicator plots price channel and Fibonacci levels based on the latest ZigZag peaks.

Simplified version of the popular ZigZag indicator. The algorithm runs significantly faster, does not use intermediate calculation buffers, does not contain nested cycles and, therefore, does not redraw itself.

The indicator displays the breakthrough line.

Indicator of trend change.

The CCI_Histogram indicator with the timeframe selection option available in input parameters.

Trading system based on AroonOscillatorSignAlert indicator signals.

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

The ADXDMI indicator with the timeframe selection option available in input parameters.

Semaphore arrow signal indicator based on the AroonOscillator oscillator leaving the overbought and oversold areas, which features alerts, sending emails and push-notifications to mobile devices.

Vertical histogram with distribution of Highs.

Vertical histogram with distribution of Lows.

Vertical histogram with distribution of extreme prices.

Vertical histogram with distribution of prices.

The indicator implements a breakout system using the PChannel_System channel, with the possibility to round the channel levels to the required number of orders and with the display of the latest channel breakout levels in the form of price labels.

The PChannel_System indicator with the timeframe selection option available in input parameters.

Indicator of intraday volatility with no lag.

The Donchian_Channels_System indicator with the timeframe selection option available in input parameters.

The indicator implements a breakout system using the DarvasBoxes channel, with the possibility to round the channel levels to the required number of orders and with the display of the latest channel breakout levels in the form of price labels.

The DarvasBoxes_System indicator with the timeframe selection option available in input parameters.

The ytg_Price_Peak indicator with the timeframe selection option available in input parameters.

Trading system based on DarvasBoxes_System indicator signals.

Trading system based on PChannel_System indicator signals.

The Fisher_org_v1 indicator with the timeframe selection option available in input parameters.

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.

1...282930313233343536373839404142...115