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

Submit your code

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.

define a family of algorithms, encapsulate each one, and make them interchangeable. strategy lets the algorithm vary independently from clients that use it

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

Advisor scalper. Trading algorithm: Candle[0]> Candle[1] * 2. Taimeframe - 4H && Day.

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 (%)

An indicator for drawing all important Pivot Points including: "Classic", "Camarilla", "Woodie", "Floor", "Fibonacci", "Fibonacci_Retracement".

Money-managing stop loss baseline indicator for MT5.

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.

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

Three Moving Averages Convergence/Divergence - Indicator for MT5

Use sharing to support large numbers of fine-grained objects efficiently

Provide a surrogate or placeholder for another object to control access to it

Sometime we have to work with Custom Angles based trendline for price action analysis e.g. 45 degree angle is considered more important for up or down trend. This indicator will help you by drawing a trendline which will match your custom angle on last input number of bars

Shows Last Price, Daily percentage change and Time based on Input selection to the Price Line

Simple class for getting the number of microseconds (µs) elapsed since January 1, 1970

1...174175176177178179180181182183184185186187188