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

XAUUSD M15 basket recovery EA with adaptive ATR spacing, LL/LH structure validation, dynamic RSI gating, crash detection, news filter, and smart trade trimming.

The indicator shows the average rank-based price velocity

Free MT5 position risk monitor displaying stop-loss risk, account risk percentage, positions without SL and individual position risk directly on the chart.

Calculates fractals and lets you specify the number of bars separately before and after the current High / Low (fractal).

The "Support and Resistance" indicator shows the support and resistance levels using the Fractals indicator by Bill Williams.

This trend indicator shows the current trend direction and moments for closing of the opened position.

CADXOnArray class is designed for calculation of ADX (Average Directional Movement Index) values on indicator buffers. The example of use of the class is provided.

Trinity-Impulse indicator shows market entries and periods of flat.

The indicator shows entry signals based on Accelerator Oscillator.

The indicator draws (in a separate window) the Bollinger Bands relative to the moving average and projection of the price bars.

This Indicator is used for calculating trend.

Slightly modified history load function from MetaQuotes.

The indicator which fixes Pin Bars in the chart

Calculator-panel to calculate profit/loss. Data is calculated either when moving lines, or changing the parameters in input fields of the entry price, lot, profit or loss in pips or in deposit currency

The MA will automatically recalculate the period if there are any changes in time frame.

Trading system using the Digital_MACD indicator.

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

An example of using the MasterWindows library for creating a game trade panel.

The Expert Advisor averages losing positions based on a particular algorithm.

The Color Day indicator colors the bullish and bearish days.

Extended swing line indicator

VR---SETKA---3 - MetaTrader 5 Expert Advisor. This is a continuation of VR---SETKA . The EA is based on the martingale principle. Grid. Martingale. Use only on hedge accounts.

Measuring the net performance of MetaTrader 4/5 strategy testers.

Choppiness Index: another way of calculating fractal dimension.

Trend composed by a series of averages

Indicator ZigZag Oscillator

Hull moving average

Demonstration of Canvas's capabilities using 3D spiral quotes as an example.

The Relative Strength Index Indicator (RSI) is a price-following oscillator that varies between 0 and 100.

The Universal Moving Average, it allows to select any type of moving average, included in the MetaTrader 5 client terminal.

The DRAW_LINE style is used for plotting the values of the indicator's buffer as a line.

The DRAW_FILLING drawing style plots the filled area between the values of two indicator buffers. In fact, it plots two lines and fills the area between them with the specified color.

The DRAW_BARS drawing style is used to plot the bars using the values of 4 indicator buffers with Open, High, Low and Close prices.

Slow Adaptive Trend Line is used for suppressing market noises and market cycles with longer oscillation periods.

This indicator paints the candlesticks in different colors depending on a trend power and direction.

Instantaneous Trendline shows buy and sell signals, while crossing the moving averages.

CG Oscillator basic and signal lines crossing generates buy and sell signals.

COsMAOnArray class is designed for calculation of OsMA (Moving Average of Oscillator) values on indicator buffers. The example of use of the class is provided.

MPC

The MPC indicator plots a simple channel using extermums of the specified period. It can be used for additional visual control of trading system (channel breakout), based on HighestLowestRange (HLR) indicator.

Trading signals module for MQL5 Wizard. BykovTrend indicator's color arrow serves as a market entry signal.

1...515253545556575859606162636465...210