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

Dynamic Trader Oscillator

Stochastic extended with the choices of the prices

Stochastic of average(s)

Stochastic of filtered price

Rocket RSI

Range weighted smoothed EMA

Range weighted exponential moving average (EMA)

Range weighted average MACD

Range weighted average - average that uuse the current volatility for weighted average calculation

Filtered WPR (Williams Percent Range)

Filtered averages

Filtered price using self adjusting deviation for price filtering

Triangular moving average

Ehlers Fisher transform (as originally described in the book)

A channel is a trading range between support and resistance levels that a stock price oscillates in for a period of time. This indicator draws the resistance and support lines based on the peaks and valleys that are found within a defined period of time.

Perfect trend line


TRiX candles with Keltner channel

TRIX candles

RSI candles with Keltner channels

Volume weighted awesome oscillator

Corrected volume weighted moving average

Volume weighted moving average

Corrected generalized DEMA

Volume Wave indicator originally idealized by Richard D. Wyckoff.

Linear regression

Volume Profile + Range v6.0 (former TPO). Distribution of deals by price levels at a given time interval. Displayed as a histogram. The width of the histogram at the level means the number of transactions carried out on it. If a broker provides data on a real volume, the indicator is able to display distribution on it as well. Original codes is here but it doesnt work on new builts of MT5 I just compiled for new builts

CCI variation

Super trend - simple

Stochastic RVI - levels

Juice - EMA deviation - advanced

Swami Aroon

Swami stochastic

Trend direction and force - double smoothed EMA smoothed

Spearman rank correlation - with floating levels

Adaptive ATR channel

MinMax indicator

Stripped T3 levels (T3 levels that can display the 3 phases of T3 calculation)

Volatility quality - zero line and ATR based