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


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

The Ultimate Oscillator indicator

The ROC indicator with signal Moving Average

The OHLC Volume Histogram indicator

The OHLC Volume indicator

The TriMAgen indicator

The Fibo Average2 indicator


Indicator WSI

Indicator Wilder ATR

Indicator On screen MACD

Indicator Mean reversion

Indicator JSmooth MA

Indicator Fx Sniper's Ergodic CCI Trigger

Indicator BB ATR oscillator

The Average change indicator

Indicator Total Power

The Moving Average with step indicator

Pivot Oscillator

The "Average of 18 Moving Averages" indicator


The Trend Interruption Average indicator

Indicator Stalin_NRTR with the timeframe selection option in its input parameters

The Stalin indicator in the form of NRTR.

The Stalin indicator with the ability to change the indicator timeframe using input parameters

Multi timeframe Slow Volume Strength Index

Multi Time Frame Power Weighted Moving Average

The Multi timeframes RSI indicator

An Expert Advisor based on the iMACD indicator (Moving Average Convergence/Divergence, MACD)

The script creates the Fibonacci levels graphic object with a large number of settings.

The indicator implements a breakthrough system using the Float_Pivot_Smoothed_Digit channel.

The ColorMFI_X20_Cloud indicator with the possibility to change the indicator timeframe using input parameters

The ColorRSI_X20_Cloud indicator with the possibility to change the indicator timeframe using input parameters

The EA implements averaging of positions. The average iStdDev is calculated in a sliding window.

Three timeframes RSI Average

The Three timeframes Stochastic Average indicator

The Tymen STARC Bands indicator

The Multi timeframe Tymen STARC Bands indicator

Self Advance Decline line - with floating levels

Self advance decline line

Extended normalized RSI - on chart version

Extended normalized RSI

Normalized RSI