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

MQL4 and MQL5 Source Code Library

You don't know where to start learning the MQL5 or MQL4 programming language? Various programs for your MetaTrader terminal are available here. Download and study published code examples, develop your own indicators and Expert Advisors. Publish your applications in the largest library of MQL5 and MQL4 codes, and they will be available in every MetaTrader terminal and MetaEditor.

Your code examples in MQL4 and MQL5 will be distributed worldwide, and thousands of traders will know about you!

To post a new code, please log in or register

This is the trading signal of PullBack and Candle. The expert code for this strategy is automatically generated by the MQL 5 wizard.

Trend detection index

Trend continuation factor - averages pre-smoothed (filtered)

The indicator determines the direction of the bar based not only on the Open/Close prices. Gaps and gaps in quotes are also determined.

Trend trigger factor - with an addition of discontinued signal line(s)

Hull ribbon

Schaff trend cycle CCI

Schaff trend cycle - Hull

Hull quad

This is a re-write of the nonLagMA found elsewhere and includes several uncommonly shown coding options, including a simple control dashboard.

Fractal Adaptive Moving Average with value filter

Fractal Adaptive Moving Average with floating levels

Fractal Adaptive Moving Average -

Super smoother RSI

Easy and visual way to check abnormal changes in Volume.

This is Larray Williams's Variable Accumulation Distribution, used in volume analysis.

TrendStrength EMA variation

TrendStrength of deviation scaled MA

PdfMA based awesome oscillator

Probability density function based MA MACD

Deviation scaled MA with self adjusting levels

EMA variation ribbon

Exponential moving average variation

This is the trading signal of Bollinger Bands. The expert code for this strategy is automatically generated by the MQL 5 wizard.

Momentum ratio oscillator

Highest high & lowest low support resistance

RSI divergence candles

Filtered deviation scaled MA

Deviation scaled MA - extended

CCI of average - floating levels

Higher Highs & Lower Lows Stochastic

Stochastic extended - floating levels

MACD slope divergence

Rsi slope divergence

Two identical trading systems (for long and short positions) based on the signals of the FineTuningMACandle indicator, which can be configured in different ways within one Expert Advisor

The Expert Advisor combines signals from several indicators. It can also follow a certain indicator.

The indicator shows the gap size on the histogram.

XFisher_org_v2_Candle indicator provides alerts, sends email and push notifications at the incoming trading signals. Possible signal options

The Expert Advisor uses iMA (Moving Average, MA), iAO (Awesome Oscillator, AO) and custom Laguerre indicators.

XFisher_org_v2_Candle_Alert indicator with background filling for overbought/oversold areas, as well as for the channel between them

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150