Watch how to download trading robots for free
Find us on Twitter!
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

Top MQL4 and MQL5 source codes based on user ratings - 101

Submit your code

Explore the implementation of equity-based position closure in your trading bot, where positions are closed automatically when the equity reaches a certain percentage threshold.

Enables Programmers to create Martin Gale and Grid Trading strategies with ease.

A tool which refreshes the chart automatically and will make active indicators update if something stopped plotting on the chart.

Candle ZigZag is an indicator which changes its leg if a candlestick color changes

This is a basic library to create and manage grids.

MQL5 version of geometric moving average.

Hull Moving Average (HMA) that can change its color.

Opens a virtual hedge position in MetaTrader 5.

The Pivot levels indicator, the Pivot sublevels and the Camarilla levels drawing the indicator buffers and the horizontal lines

Volatility channel is a very interesting alternative to Bollinger Bands.

The oscillator that displays strengths of Buyers (Bulls) and Sellers (Bears) separately.

The script demonstrates the example of using the FileTell() function

The indicator shows inverted chart for better short trading.

Another zigzag version with a simple code that correctly determines peaks.

A Moving Average that includes price series processing by Gaussian filter.

Flight smiles.

The robot opens two positions, profits of which overlap each other, and waits for a profit.

Regression Channel with variable polynomial degree - indicator for MetaTrader 5.

ATR Stop Loss indicator

The iUSDx indicator uses the "MCM Control Panel" for multicurrency mode. It calculates the USD index.

The indicator generates market entry signals based on the ADX indicator.

The indicator displays MACD histogram and price divergence on a chart.

CVHFOnArray class is designed for calculation of Vertical Horizontal Filter (VHF) values on indicator buffers.

The CPriceChannelOnArray class is intended for calculation of the price channel on indicator buffers.

The indicator that allows modifying color of the candles.

The Expert Advisor with which Alexander Prishchenko (Crucian) participated in Automated Trading Championship 2012

Smoother Relative Strength Index.

The semaphore signal indicator fixing moments of breakthrough of the zero level by the iCCI technical indicator and displaying these moments by color points

The script demonstrates the example of using the FileGetInteger() function

The indicator of patterns. It is based on the smoothed Commodity Channel Index and Bollinger Bands.

The RoundLevels indicator draws two closest "round" levels above the current price and two more below it

The Momentum oscillator with a triple averaging and a signal line.

MA

A very simple EA based on the crossover of two Moving Average.

The indicator displays the support and resistance levels calculated on daily prices.

A set of target support/resistance levels for the predicted price movement.

A semaphore arrow indicator based on the crossover of the DI+ and DI- lines of the ADX indicator.

The MultiSlow-Stochx7Signal indicator shows information on active trends using the values of seven Slow-Stoch indicators from different timeframes.<

This trading system uses the ColorJJRSX oscillator.

An oscillator from an averaged difference between the FATL digital filter and the Close price.

The MACD Indicator, in which the price series is replaced by the series of values of the Chaikin Oscillator technical indicator. It is drawn in the form of a colored cloud.

1...949596979899100101102103104105106107108...183