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

Submit your code

A variation of linear regression.

Cluster indicator based on article https://www.mql5.com/en/articles/1464

Indicator Choppiness Index

KDJ

KDJ oscillator defines when it is necessary to search for market entry conditions.

Super SAR is a signal indicator based on SuperTrend and iSAR.

ATR-based ZigZag implementation.

Phase change index - JMA

Step chart of stochastic

JMACandle indicator with two colored channels based on standard deviations from High and Low of the indicator candles

Indicator RJTX_Matches_Smoothed in the main chart window

Closing positions when reaching a profit level

The indicator plots support/resistance levels and areas

Volatility quality - zero line and ATR based

Slope Direction Line / Moving Average confirmation bars indicator

Smoothed Standard Deviation

Ehlers Fisher transform (as originally described in the book)

Displaying the latest closed values of indicator Float_Pivot_Digit with colored rectangles and background filling

Indicator Multi timeframe Dynamic Trend

Indicator Thrust Bar

EMA to SMA MACD - on chart

Bandpass filter

Random number generation using the 32-bit PCG generator.

When the subject changes, it notifies and updates its observers, who know nothing about each other.

Discontinued signal line CCI using average of price for filtering signals

An Expert Advisor, based on the "Puria method" Forex Strategy.

The Stochastic of all oscillator-like indicators, included in MetaTrader 5 client terminal.

Moving Average indicator, can be applied to any timeframe (higher or lower than the current chart's timeframe). Includes: SMA, EMA, SMMA, LWMA, AMA, DEMA, TEMA, FRAMA, and VIDYA

The MCM Control Panel provides the solution for multicurrency trading in MetaTrader 5.

Trade signals based on price crossover of two exponentially smoothed moving averages with intraday filter is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The example of use of the resources. It creates a button, using the object of OBJ_BITMAP_LABEL type.

It speaks the specified text using the speech engine.

Trend direction indicator BrainTrend1.

A blue candle of BrainTrend1 indicator is a signal to open a long position, a red candle is a signal to open a short position.

Chaikin Oscillator with a smoothing algorithm selection.

Commodity channel index having possibility to select smoothing algorithm and dynamically changing oversold/overbought levels.

Darvas trading technique is based on his method of a new trend detection.

The CFractalsOnArray class is intended for calculation of Fractals on indicator buffers.

Trading signals module for MQL5 Wizard. The moment, when a bar formed by 3LineBreak changes its color, indicates the time for market entry.

The Expert Advisor is based on CCIT3_Simple and CCIT3_noReCalc. Crossing of the indicator's zero line is used for trading activity.

Weighted Moving Average with a regulated lag using a curve of the normal (or Gauss) distribution as the function of weight coefficients

1...515253545556575859606162636465...188