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

Submit your code

Indicator Multi timeframe Dynamic Trend

Indicator Market Session

Indicator Thrust Bar

EMA to SMA MACD - on chart

Bandpass filter

This script will change the SL and TP of all open trades of the symbol to the price where the script is dropped off.

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

The code above is a "Hammer" indicator that detects candlestick hammer formations (bullish and bearish) and inverted hammer formations (bullish and bearish) on a MetaTrader 5 chart. This indicator identifies price reversal patterns by calculating the size and ratio of the candlestick wicks based on adjustable parameters: MaxRatioShortWick, MinRatioLongWick, and MinCandleSize. When a pattern is detected, the indicator displays a colored arrow near the candle’s lowest or highest price according to the pattern’s direction. The code also includes functions to create and delete objects automatically when the indicator is initialized or stopped.

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

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.

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.

This indicator shows the "ultimate support/resistance" levels of current trend. Trend changes is shown with color rectangles, trend direction is shown with colored dots.

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

The class is designed for calculation of a technical indicator Relative Strength Index (Relative Strength Index, RSI) using the algorithm of the ring buffer.

The indicator "collects" the information of a trend lines drawn on a current chart, displays the prices of lines in the last (forming) bar and also either gives signals, or sends alerts when price crosses the trend line upon trader choice

The trend indicator drawn on the basis of a Moving Average

Function to define the trend strength

This Expert Advisor works with Neural Network method

Donchian Channel is a volatility indicator based on the calculation of the current price range with the recent highest and lowest prices.

A trading system that uses the Candle Momentum Index.

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

The indicator uses analysis of values of Heiken Ashi Open and Heiken Ashi Close.

The indicator changes the bar color to the color of the current trend calculated based on the RSI technical indicator.

Library of fast Fourier transformation functions (FFT).

Script draws the Axel Rudolph levels

Indicator displays different candlestick patterns on chart. It is possible to change colors and disable alerts.

The indicator shows the trend direction or the signal based on the ForexProfitBoost_2nbSign indicator.

The Momentum indicator implemented as a sequence of candlesticks.

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

The BWImp-T01 indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

Semaphore signal indicator triggering when the ChandelExit indicator cloud changes its color.

1...636465666768697071727374757677...199