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

Submit your code

Linear regression line with an addition of standard error channel projection.

An Expert Advisor based on indicator Renko Level

Juice is a standard deviation indicator that shows if the deviation is below or above some fixed level. That way it can show if the volatility is increased or not compared to that level.

Grid of Stop and Limit pending orders.

Adaptive lookback stochastic

Kaufman ama - with floating levels

Classic Donchian Channel indicator

Discontinued signal line QQE - histogram

Working with pending Buy stop and Sell stop orders. Martingale.

The script builds the Fibonacci Levels graphical object with the option of selecting the number of its segments

RSI Summed

Normalized MACD of averages

Builds a sliding line with a polynomial of 4 degrees. Extrapolates as a section of a given function with a sinusoid and its axial one. One value is taken from the constructed lines on each bar and a line of extrapolated values is plotted, which does not redraw.

This indicator shows the amount of price movement within a certain time, compared to the actual price movement range. Good to detect consolidation areas, as well as new trends being formed

This code snippet implements a dynamic risk management strategy for existing trades. It focuses on closing trades based on profit or loss thresholds and employs a trailing stop loss to lock in profits as the trade moves favorably. The strategy helps manage risk and enhance profitability in a streamlined manner.

This robot uses a random number generator to simulate simply tossing a coin to decide on the direction of each trade. It provides an example of a minimal expert advisor programmed in an object-oriented style. It also provides a basis for quantifying the value added by alternative methods of entry.

Fine Fractals can show important price curves, highs and lows in the cases where the standard Fractals indicator fails.

Superposition of RSI and DeMarker technical indicators.

Simple script to randomize all colors of your chart. Just click on it and see results yourself!

Point and Figure indicator shown in bars and displayed in the separate window.

The simplest semaphore indicator having alerts and providing the possibility to send signals to a mailbox.

The function that identifies extremums over a given period of history.

Expert Advisor based on three moving averages and exit using Stop Loss or Take Profit. It sets up an entry with the trend.

This indicator uses support vector machines to analyse indicator data and signal future trades. Buy trades are signalled by a green ‘up’ arrow with sell trades signalled by a red ‘down’ arrow.

The indicator which displays the beginning and the end of the trend

The indicator of the minimum sum of price changes which forms signals after flat movements and before potential breakthrough in this or that side

The NRTR trend indicator that sends alerts and Push messages

This indicator is useful for correlation analysis and also for cross pair analysis.

An indicator that uses tick volume for calculations.

Stochastic Oscillator (based on Stochastic Momentum) from the book "Momentum, direction and divergence" by William Blau, implemented in the form of a color histogram with a signal line implemented as a colored cloud.

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

Spread Indicator - displays current spread in the chart window.

The indicator draws Heiken Ashi candlesticks of a higher timeframe as color filled rectangles using DRAW_FILLING buffers.

Another variation of Bollinger Bands. In this indicator prices High and Low are used instead Close for calculating Standard Deviation.

The MinusDi indicator processed through the Laguerre filter.

Trading signals module based on Ozymandias.

All-In-One candlestick chart.

The RVI Oscillator in the main chart window relative to the Moving Average indicator.

This version is showing the channel that needs to be broken if the trend is going to be changed.

A histogram of minimum and maximum values of the following parameters: SYMBOL_SESSION_BUY_ORDERS_VOLUME - "Total current volume of buy orders" and SYMBOL_SESSION_SELL_ORDERS_VOLUME - "Total current volume of sell orders".

1...798081828384858687888990919293...183