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

icon

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.

Submit your code

Indicator 2XMA_Ichimoku_Oscillator with the timeframe selection option available in input parameters.

An oscillator based on the difference of two smoothed, different-period Tenkan-Sen lines in form of a colored histogram.

An Expert Advisor based on indicator iMA (Moving Average, MA) and implemented as a class.

The KWAN_CCC indicator with the possibility to change the indicator timeframe in input parameters.

A simple oscillator based on the values of the Chaikin Oscillator, Commodity Channel Index and iMomentum indicators and implemented as a two-colored histogram.

The KWAN_NRP indicator with the possibility to change the indicator timeframe in input parameters.

A simple oscillator based on the values of the iDemarker, iMFI and iMomentum indicators and implemented as a two-colored histogram.

An Expert Advisor based on three iMA (Moving Average, MA) indicators.

An EA based on the Doji pattern. Position trailing.

It deletes the arrow objects from the chart, which mark the transactions in the chart. The utility is implemented as an indicator that does not draw anything by itself.

This EA uses indicators iCCI (Commodity Channel Index, CCI), ZigZag, and Impulse. Position trailing is possible.

Impulse Indicator - Count of Points Passed.

Stochastic Price Rate-of-Change Oscillator.

Stochastic MACD.

Slow Stochastic.

Fast Stochastic.

IT

Instantaneous Trendline - John Ehlers "instantaneous" trendline.

CC

John Ehlers Cyclic Component Indicator.

Modified Awesome Oscillator.

The EA trades with the Absorption pattern. Working with pending orders Buy Stop and Sell Stop.

Indicator of trend strength and of the possible changes in its direction.

The US dollar index in form of Japanese candlesticks.

The US dollar index against a basket of basic currencies.

Generic Index Indicator.

The EA trades on the iMA (Moving Average, MA) indicator. At the same time, there is a parameter of the indicator indent from price, set in percents.

Two Moving Average indicators: A slow one for opening positions, and a fast one for closing positions.

An Expert Advisor based on two indicators: iMAs (Moving Average, MA) and iMomentum (Momentum).

The FX-CHAOS_SCALP trading strategy.

ZigZag based on the Fractals indicator.

William Blau Stochastic.

William Blau True Strength Index.

William Blau Stochastic.

William Blau Trend Momentum.

William Blau Stochastic Indicator

William Blau Stochastic Momentum.

William Blau Momentum.

William Blau Directional Trend Index.

William Blau candlestick momentum.

William Blau Candlestick Index.

Indicator of volumes accumulated within a period.

1...565758596061626364656667686970...183