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

Submit your code

This tool allows you to calculate the correct lot size of the next trade by following some simple money management rules.

The Percentage Price Oscillator Extended (PPO) is a technical Momentum indicator showing the relationship between two Moving Averages. To calculate the PPO, subtract the 26-day Exponential Moving Average (EMA) from the nine-day EMA, and then divide this difference by the 26-day EMA. The end result is a percentage that tells the trader where the short-term average is relative to the longer-term average.

Commodity Channel Index (CCI) is a versatile indicator that can be used to identify a new trend or warn of extreme conditions. Donald Lambert originally developed CCI to identify cyclical turns in commodities, but the indicator can be successfully applied to indices, ETFs, stocks, and other securities.

Modified BW Zone Trading - a modified indicator of Bill Williams' zone trading.

A moving average by Tim Tillson

"Sadukey" indicator is an indicator combining two digital filters on a chart to give us an assessment of current trend.

Calculation is based on current week open and previous week range.

Trading on several candlestick patterns. The levels of Take Profit, Stop Loss, and Trailing are separate for BUY and SELL.

Two identical trading systems based on the signals of BrainTrend2_V2, for long and short trades, which can be configured in different ways within one Expert Advisor.

Indicator Speed of Trade

An indicator that draws the CaudateXPeriodCandle candlestick sizes in points.

AV

AV (Average Volatility) - a simple average volatility oscillator.

The EA performs initial opening in both directions. Then it tries to pull the remaining side into profit.

Parabolic Stop And Reverse as an oscillator

This version is the smoothed version of the original Range Oscillator + Bands indicator. Smoothing is cleaning up some false signals and, since the smoothing method is JMA (which has very small lag) the added lag is as small as it can be making it much easier to use in a lot of decision situations.

An Expert Advisor based on the iWPR (Williams' Percent Range, %R) indicator with the operation time control.

The indicator DHLPBO (Dynamic High/Low Percentage Band Overlay). Unlike DHLBO, which displays two bands calculated based on the Highs/Lows of the range, this indicator constantly narrows the channel width by a certain percentage throughout the whole range.

The indicator measures money on a chart.

Double smoothed MACD Stochastic indicator

Step chart of stochastic of averages

Bollinger Bandwidth Delta oscillator

Two identical trading systems (for long and short positions) based on the signals of the VortexIndicator indicator, which can be configured in different ways within one Expert Advisor

The indicator based on three moving averages

The Expert Advisor uses iMA (Moving Average, MA), iAO (Awesome Oscillator, AO) and custom Laguerre indicators.

MinMax indicator

Vortex Trend indicator

RSI_X20 indicator is able to color each line depending on its position relative to overbought and oversold areas

The Ultimate Oscillator indicator

The MA Slope indicator

Double smoothed stochastic of ratio

The ColorMFI_X20 indicator with the possibility to change the calculation timeframe using the indicator input parameters

The ColorRSI_X20_Cloud indicator with the possibility to change the indicator timeframe using input parameters

Correlation angle

Class for comparing two floating point variables.

This Script will Refresh All Open Charts in MT5, Usually custom symbols in MT5 needs to be Refresh sometime so this script will help to refresh all open chart at once. We can also use this Script anywhere where we need to refresh all open charts.

The script scans through the current chart for any available chart objects, Counts and delete them accordingly, And log the the names of the objects on the chart respectively.

Callback interface for timer

This is a simple mean reversion EA

An automated Expert Advisor that implements a popular MACD-based strategy as seen in a viral YouTube video with over 3.5 million views. Combines MACD crossovers, trend filtering with the 200 MA, and support/resistance detection.

This script exports indicator's values to CSV file.

1...8687888990919293949596979899100...200