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

Submit your code

This is a simple script that Closes all Orders and Positions available

ZigZag based on fractals. Due to the use of Fractals indicator, it works much faster than conventional ZigZag indicator.

Indicator Directional Trend Index from the book "Momentum, direction and divergence" by William Blau, implemented in the form of a color histogram.

A colored cloud formed by two moving averages with different timeframes.

Copy trading has become such a critical feature of forex trading. Some people see this as a potential business opportunity, while for opensource die-hards like me, we believe in giving back to the community rather than putting a price tag on everything 'nice'. So here it comes. A free opensource trade copier, which you are freely allowed to modify and distribute according to MIT license terms. It still has limited features, but the essentials like lot normalization are there. Please note that this copier only works for trading terminals installed on the same machine. Please share back any upgrades, enhancements or bug fixes to the discussion. Enjoy!

One code that works for both Mt4 and Mt5 combined. Salient features of the code: -Filter News by High, Low or Medium Volatility -Filter By currencies -Filter by News Keyword -Auto GMT offset check -Dashboard to show upcoming News (Can be enabled or disabled) -Lines on chart for all Upcoming events -Code can be easily modified to place trade at certain time before or after an event or to just stop trading during events.

Volumes Spread mod

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

The Expert Advisor searches for N identical candlesticks in a row. It buys on bullish candlesticks and sells on bearish ones.

Market status indicator with signal lines.

This script opens order with maximal amount of volume available.

Locking positions - opening Buy and Sell simultaneously.

This utility allows monitoring of multiple symbols and positions on one chart with one-click switching of the chart symbol.

The indicator draws three daily rectangles

Ron Black's Swing Line indicator made as histogram indicator.

This indicator calculates the index of a given currency, using the USD index. It is based on indicator SymbolX, but four prices are used for calculations: OHLC instead of just one Close price.

Internal Strength indicator

iSAR indicator (Parabolic SAR, SAR) with filled areas between the indicator and the price. On the right side, a rectangle is drawn equal in size to the fill area

Bears vs Bulls. Bees vs honey. Rock vs drugs.

Standard Stochastic shown as a color histogram.

The indicator displays "squatter" fractals with regard to volumes.

Mogalef bands

Print info about a closed position by its position ticket or identifier.

Building good trading habits by seeing things in terms of percentage not in terms of money.

This indicator provides handles for 2 properties, MA Speed (scaled) & Price-to-MA Distance (%)

Money-managing stop loss baseline indicator for MT5.

A simple and effective Expert Advisor based on Stochastic Oscillator reversal signals on the H1 timeframe. Buy signals are triggered when %K crosses above %D below the 20 level. Sell signals are triggered when %K crosses below %D above the 80 level. Risk is calculated based on the account balance, with the lot size set to 0.1 (adjustable as needed). Take Profit (TP) is set to 300 points for all positions. Stop Loss (SL) is dynamically calculated based on the opposite crossover signal. The position is closed when a crossover in the opposite direction occurs, as well as when TP or SL is reached

Clouds formed by the masses of moving averages of different periods.

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

The Decycler II: John Ehlers, "Stocks & Commodities V. 33:09", стр.12-15

This library shows useful informations and do a lot of functions to a symbol.

Strategy that uses the CCI indicator 0-line cross to spot trades and the MACD indicator to confirm them.

The indicator compares OHLC prices

The indicator "The Trend Detection Index" is a changed TDI indicator.

The indicator draws candlesticks of a larger timeframe as color filled rectangles in accordance with the colors of the CronexMFI indicator.

VSI

VSI - Volatility Switch Indicator.

The indicator plots four horizontal lines: Two basic ones (red by default) above the High and below the Low of the "Bar number" bar and help lines (green by default) shifted from the basic ones.

Projection Bands indicator.

Projection Bands indicator in the form of oscillators.

Nonlinear Kalman filter deviation

1...177178179180181182183184185186187188189190191