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

Submit your code

This indicator draws a period of operation that specifies trade start time and trade stop time.

Export MQL5 live data to Excel (DDE)

This is Bollinger Bands %b indicator for MetaTrader 5.

Trading signals module based on Delta ZigZag indicator.

FuzzyNet library for developing fuzzy models was written in C#. While converting to MQL5, 8 membership functions and 4 defuzzification methods for Mamdani-type systems were added to the library.

The script tests the computer in 45 performance tests. It is possible to compare the performance of VPS/VDS servers.

A trading robot for performing arbitrage between EURGBP and its synthetic quotes (triangular arbitrage).

The Exp_FRASMAv2 Expert Advisor is based on change in color of the FRASMAv2 moving average.

The MACD histogram, based on the FATL and SATL digital filters with color indication of trends.

This version of Bollinger Bands has a choice of calculating the standard deviation as a sample or as an uncorrected deviation.

ZigZagOnParabolic with its values displayed as fractal labels.

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.

A simple strategy based on the signals of two indicators: Williams' Percent Range (WPR) and Bollinger Bands (BB). A position is opened only when the signals of both indicators coincide.

1...181920212223242526272829303132...195