Watch how to download trading robots for free
Find us on Telegram!
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 - 46

Submit your code

This utility tracks positions opened manually or by another EA for the current symbol and opens an opposite position. Opening the positions is tracked in OnTradeTransaction.

Two ZigZag indicators are used for analysis.

Returns the profit of a position in points, as well as commission, swaps and profit in money based on the trading history.

A channel based on peaks and troughs of ZigZagOnParabolic.

The indicator calculates the ATR value based on the minimum price differences of the current and previous day, taking into account the volume of the current day.

Signals are generated by the iBands, Bollinger Bands indicator. When a signal is received, opposite positions are closed.

RMO

The tend indicator: Rahul Mohindar Oscillator

Indicator AnchoredMomentum with the timeframe selection option available in input parameters.

The oscillator shows standard deviation calculated on the difference between the High and the Low.

An information-forecast MACD on the price chart

Indicator Aroon.

An unorthodox approach to indicator MACD: The EA calculates the indicator's area displayed above and below zero line.

GB

Indicator GB (Gaussian Bands) works in the same manner as standard indicator Bollinger Bands. However, unlike the former, it performs filtering centerline and deviation lines by Gaussian method. It also has two deviation lines on each side of the centerline.

PAC

PAC (Periods After Crossing MA) is an oscillator displaying the number of bars elapsed after the last crossing of the price and the moving average.

A configurable RSI

The EA uses Martingale. Initial entry by indicator iStochastic (Stochastic Oscillator).

The indicator paints candles going beyond the CandleStop channel.

iATR (Average True Range, ATR) and iStdDev (Standard Deviation, StdDev) indicators are configured for crossing of the two iMAs (Moving Average, MA) plus for Buy and Sell separately.

Multi Averages Slopes indicator that checks slopes of 5 (different period) averages and adds them up to show overall trend. Averages that can be used in this indicator are the: SMA, EMA, SMMA, LWMA.

Multi timeframe version of the Trend Trigger Factor JMA indicator.

Force index - JMA

A trading system based on the signals of indicator FineTuningMACandle

Filtered price using self adjusting deviation for price filtering

Provides an interface for creating families of related or dependent objects without specifying their concrete class.

MACD beginner tutorial to learn how to code in MQL5

AMA - Adaptive Moving Average - beginner tutorial to learn how to code in MQL5

changing character prices on an interval

This tool will calculate the acceptable lot size based on a stop loss distance and risk percentage

A sample pine code converted to MQL

The Parabolic SAR Indicator was developed for analyzing the trending markets.

The MovingAverages library contains functions for calculation of different types of moving averages.

The OnTick event handler is designed to proceed the ticks for a certain symbol. This is the version of Multicurrency tick event handler.

Chart reinitialization with recalculation of all chart indicators.

The script allows you to place the deals history on the chart using the graphic objects.

New version of the sChartsSynchroScroll script.

The Expert Advisor uses the Moving Average and Stochastic indicators.

The DRAW_HISTOGRAM drawing style is used for plotting the values of the indicator's buffer as a histogram.

SuperTrend trend indicator.

Forecasting the next day candlestick changing range for all bars of the current chart.

Adaptive CG Oscillator is a CG Oscillator that can adapt to constantly changing market cycles of a real financial asset.

1...394041424344454647484950515253...188