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

Submit your code

A rounded MACD histogram presented in the price chart points.

The Exp_CGOscillator_X2 trend trading system based on the signals from two CGOscillator indicators.

The script deletes all orders of the type specified in settings, on the current symbol.

A histogram of maximum and minimum values of parameters SYMBOL_SESSION_BUY_ORDERS — "the total number of current buy orders" and SYMBOL_SESSION_SELL_ORDERS — "the total number of current sell orders". The drawing style is DRAW_HISTOGRAM.

Buy a security (open BUY positions) at a lower price, sell (open SELL positions) at a higher price.

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.

RMO

The tend indicator: Rahul Mohindar Oscillator

Indicator ADL (Advances/Declines Line) shows the ratio of positive and negative price increments over a specified time interval.

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.

Two independent trading systems using indicators BykovTrend_V2 and ColorX2MA within one EA.

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.

Working with pending Buy Stop and Sell Stop orders.

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.

T3

The T3 Moving Average indicator

Force index - JMA

EWO

EWO indicator

A trading system based on the signals of indicator FineTuningMACandle

Squeeze indicator

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

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.

Trade signals based on "Bullish Harami/Bearish Harami" candlestick pattern, confirmed by Commodity Channel Index (CCI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

If you need to show just a part of the image at the moment and hide other, you can use the moving window by specifying the visible area of the image.

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.

1...333435363738394041424344454647...184