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

Submit your code

BB MACD is a MACD indicator variation with an addition of Bollinger bands

The Expert Advisor opens and closes positions at the predefined moments in time.

The indicator shows the statistical characteristics of bars: the mean value, variance, skewness and kurtosis

Keltner Channel built relative to the average value of the XRSX oscillator as a sequence of candlesticks

The Exp_XOSignal_ReOpen trading system based on the signals of the XOSignal indicator with trend following scaling

Original mathematical functions taken from different places, which either do not have analogues or perform much faster than alternative implementations

A library for reading/writing the parameters of arbitrary Expert Advisors.

A quick way to draw an arc-shaped channel using four mouse clicks.

Kurtosis is an indicator of market sentiment.

The Expert Advisor is based on 30 popular candlestick patterns.

A Moving Average with the smoothing type by Mark Jurik.

This version of Polychromatic Momentum is using double smoothed EMA for smoothing. DSEMA has been proven for producing very good smooth results with a lag that is almost non-existent, hence, in combination with it, the Polychromatic Momentum indicator becomes much more usable when it comes to signals.

A.W. Warren's Momentum Indicator

A signal indicator of daily ranges.

RP

Indicator RP (Range Position) displays the price position within the range (from Low to High) reached over the previous N periods.

Tick Based Stochastic with histogram

MACD slope divergence

PdfMA based awesome oscillator

A class to reconstruct closed trades (paired in/out deals) from history sorted by close time.

Adaptive (ema) deviation

Learn how to split the volume data into different groups so that you can compare them and create a strategy based on volume average.

Calculates the risk in the account currency for a given trading volume of the selected symbol at different time periods.

Wick Ratio Candlesticks are recognized by its upper and lower wick ratio instead of open and close properties.

Smooth Algorithms fixed version plus Trade Algorithms plus full operational EA, plus two indicators . So you will get complete project where you be able to see example how to use and implement this libraries

Alerts on engulfing bar below or above rsi levels

A simple starting-point script to collect data and send to a CSV in oldest-newest ordering. In this example only the close price data is collected.

This indicator will shows the time remaining until the end of the candle. You can choose colour and the font size.

The ADX (Average Directional Index) Smoothed indicator enhances the standard ADX by applying dual exponential smoothing filters to reduce noise and provide clearer trend signals. It plots three lines: smoothed +DI (blue), -DI (red), and the main ADX line (green). This refined version helps traders identify trend strength and potential direction changes with reduced false signals. The indicator excels at confirming established trends and warning of weakening momentum before actual price reversals occur, making it valuable for both trend following strategies and determining optimal entry/exit points.

This is a minimalist CRT (Candle Range Theory) visualizer built in under 100 lines, revealing what “picture-perfect” single-timeframe setups actually produce across real markets.

The Bears Power Indicator measures the balance of the bears strength.

The Zigzag indicator is a series of sections connecting significant tops and bottoms at the price plot.

This indicator allows to see the activity of the market.

The Rabbit indicator plots the true support/resistance levels for any currency pair.

This indicator uses an autoregresive model to extrapolate prices

All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.

The script exports historical quotes data from MetaTrader 5 for the import to MetaTrader 4. This solution will allow you to get the full history for MetaTrader 4.

Library for working with files using WinAPI without location limitations.

The indicator is a combination of the FATL digital filter and analogue JMA adaptive smoothing.

Murrey Math Lines for the current bar are an effective tool for the market movements forecasts.

ExCandles-v2 indicator shows candlesticks combinations on a chart using the arrows.

1...222324252627282930313233343536...199