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

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

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.

Indicator of volumes accumulated.

Smoothed Stochastic Inverse Fisher Transform.

Kaufman Adaptive Moving Average (KAMA)

The EA waits for the price to pass XXX points within NNN ticks.

The Expert Advisor searches for N identical candlesticks in a row. It buys on bullish candlesticks and sells on bearish ones. The account type is taken into consideration, i.e., whether it is a netting or a hedging one.

Small_Inside_Bar_Strategy - an Expert Advisor based on indicator Small_Inside_Bar.

ChannelEA2 - an Expert Advisor working in a channel, using pending stop orders.

Complete and fast functions similar to Bars and iBarShift from MQL4.

1...585960616263646566676869707172...185