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 - 134

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

Donchian Channels is a volatility indicator based on the calculation of the current price range with using the recent highest and lowest prices.

The indicator that demonstrates the power of price changes entropy.

The "Support and Resistance" indicator shows the support and resistance levels using the Fractals indicator by Bill Williams.

A Lime candle of BrainTrend2 indicator is a signal to open a long position, a Magenta candle is a signal to open a short position.

A blue candle of BrainTrend1 indicator is a signal to open a long position, a red candle is a signal to open a short position.

Aroon Oscillator predicts price changes from trend to flat market conditions.

Aroon indicator created by Tushar Chande indicates if a long-term trend is going to an end or just pausing a little before a new movement.

Perry Kaufman's adaptive moving average with indicative signal points.

BrainTrend1Stop is a trend reversal indicator.

BrainTrend1Sig is an indicator for positions opening and closing. It indicates trend reversal points when a price reaches extreme values.

Trend direction indicator BrainTrend1.

BrainTrend2Stop is a trend reversal detection indicator, it is displayed by the stops line. Intersection of the line indicates trend reversal and the time to close previously opened positions.

BrainTrend2Sig is an indicator of the market trends that assigns colors to candlesticks according to the trend direction.

BrainTrend2 is an indicator of the market trends that assigns colours to candlesticks according to the trend direction.

Ergodic DTI-Oscillator (Directional Trend Index) by William Blau.

Directional Trend Index (DTI) Indicator by William Blau.

Composite High-Low Momentum Indicator by William Blau.

Ergodic CSI-Oscillator by William Blau.

Ergodic CMI-Oscillator by Willam Blau.

Candlestick Index (CSI) Indicator by William Blau.

Candle Momentum Index (CMI) Indicator by William Blau.

Candlestick Momentum Indicator by William Blau.

Ergodic MACD Oscillator by William Blau.

Moving Averages Convergence/Divergence Indicator by William Blau.

Ergodic Mean Deviation Index (MDI) Oscillator by William Blau.

Mean Deviation Index (MDI) by William Blau.

Stochastic Momentum Oscillator by William Blau.

Stochastic Momentum Index by William Blau.

Stochastic Momentum by William Blau.

Stochastic Oscillator by William Blau.

Stochastic Index Indicator (normalized smoothed q-period Stochastic) by William Blau.

Stochastic Indicator (smoothed q-period Stochastic) by William Blau.

Ergodic Oscillator by William Blau.

True Strength Index (TSI) indicator by William Blau.

Momentum Indicator by William Blau.

This Expert Advisor is a demo of working with OBJ_CHART objects as conventional charts. You can set custom color settings, attach indicators etc.

The strategy is following: when outer (outside) bar appears, it checks the fact of the inner bar breakthrough in trend direction and generates a signal to open position. A module of trade signals is compatible with the new version of MQL5 Wizard.

The Buy/Sell signals of the indicator are based on crossover of two moving averages with different periods.

This script reads all opened position and calculates their exposure for each currency.

The script converts the time, represented as datetime variable into the year, month, day, hour, minutes and seconds.

1...127128129130131132133134135136137138139140141