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

Top MQL4 and MQL5 source codes based on user ratings

Submit your code

Close trades when the percentage profit or risk of the account is reached

This class allows you to create buttons on the chart as if they were chart objects(have time and price coordinates) these objects can be dragged on the chart and when scrolling they stay at the same place. If you wan't to learn some Object Oriented Programming or if you wan't to understand how chartevents work or you wan't to create graphical interfaces, you can learn a lot from this.

Super pass-band filter as described by John Ehlers

A very simple, efficient and non-obtrusive clock for your Chart. KISS compliant! :)

MACD variation that uses Nonlag MA.

The library and iCanvas class simplify writing programs using Canvas.

RMA Relative Moving Average is a variant of EMA

The Slope Direction Line indicator is displayed as a colored moving average line indicating the average market movement direction.

The JSatl indicator with the timeframe selection option available in the input parameters.

The script obtains information about the number, types and sizes of input and output tensors in an ONNX model

Constructor for creating histograms of statistical distributions of indicators, timeseries and their derivatives.


Moving average for prices (O+C+H+L)/4.

A variation on the T3 theme that was made as a sort of envelopes using T3 for basic value.

The Volume Rate of Change (VROC) is an indicator of the direction where the volume trend moves.

The indicator colors the candlesticks according to B. Williams.

It is made more up-to-date and multi time frame option added.

MACD with possibility to choose between tick volume and real volume.

The MetaTrader 5 version of RSI of MACD double

The Aroon indicator in the new visualization.

Two colored filled rectangles with the display of channel levels. The rectangles are drawn between the values ​​of two channels on one bar of any timeframe of the GRFLeadingEdge indicator.

Fisher RVI is an oscillator that modifies RVI (Relative Vigor Index) custom indicator values using Inverse Fisher Transform.

ALGLIB math function library (v. 3.5.0) ported to MQL5.

The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.

Serialization and deserialization of JSON protocol. The code is ported from a high-speed С++ library.

The Zigzag2_R_Color indicator with the timeframe selection option available in the input parameters.

RSI experiment with a simple addition of filled areas when floating levels are crossed.

Holt's double exponential smoothing with linear forecasting

This version can use one of the 4 basic averages types for smoothing.

Laguerre RSI with Laguerre filter

The EasyAndFastGUI library allows creating graphical interfaces for custom MQL programs.

The VR Alert NT5 indicator warns the trader about the price reaching a specified level.

An indicator of custom patterns.

Indicator ADL (Advances/Declines Line) shows the ratio of positive and negative price increments over a specified time interval.

Recursive Median Oscillator - with floating levels

This script finds DeMark pivot points, displays them on the chart and indicates their dimensions.

Class for displaying multi-line comments.

Parallel use of the MetaTrader 4 and MetaTrader 5 order systems.

The indicator is an example of smoothing a time series of the OsMA indicator by filtering harmonics of higher order.

Calculating the best trading interval.

i-Regression Channel generates regression channel.