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

Submit your code

The "Fast ZigZag" indicator including the drawing of DiNapoli's target levels

The indicator displays in a separate window not only volumes, but their average value on history. The average value of volumes is used for drawing the forecast of volumes value for the current and the following days

FxTrend 25EMA is based on the difference of the EMA 25 value during two different moments.

The MACD Sample Expert Advisor trades at the crossover of the main and the signal line of the MACD. This Expert Advisor is an example of object-oriented approach in EA development.

The indicator shows the spread for each bar, the current spread and the minimum spread for a period.

The indicator draws bull and bear lines of a trend on the basis of iFractals indicator's data from the nearest extremum to the last fractal broken down.

The WPR oscillator with the boundaries of the overbought/oversold areas in the form of Bollinger Bands.

A library of classes for creating a user-friendly interface of your programs.

Regular expressions provide a formal language for quick and flexible processing of texts. Each regular expression is a pattern (mask), for which the regular expression engine tries to find matches in the source text. A pattern consists of one or more character literals, operators, or constructs.

The i-CAi indicator displays the most recent value as a price label with the the possibility to round the channel levels up to a required number of digits.

The MFIdivCandle indicator. Colors the candles based on the MFI oscillator.

Another variant of the ZigZag by Rosh.

Semaphore signal indicator based on the RSI indicator, which features alerts, sending emails and push-notifications to mobile devices.

ZigZag indicator with price labels of the ZigZag peak values.

"Classical" MA with a twist: colors change depending on the angle of the slope.

T3 floating levels made as an oscillator

The indicator plots price channel and Fibonacci levels based on the latest Zigzag2_R_Color peaks.

This version of RSX allows you to use instead any momentum length.

The version of Aroon indicator that displays colored line, bars or candles on the mains chart.

Double smoothed stochastic with some extra options

This version of RSI is "experimenting" with different ways how internally the RSI is calculated.

Rsi (7 types of RSI) with a lot of additions.

Fractal moving average with indication of the last value with a price label with the ability to change the averaging algorithm.

Holt's double exponential smoothing - the trend component.

The ZigZag indicator plotted using the NRTR algorithm.

The smoothed DeMark oscillator with the color indication of overbought/oversold level breakouts and of the histogram direction.

A simple trend indicator based on the smoothed Average Directional Movement Index drawn in the main chart window.

A script for placing a BuyStop order

This time-series library brings lightning-fast timeseries access to MQL5 for time-sensitive applications while implementing the familiar methods of MQL4, e.g. iBarShift.

A trading system based on the ColorFisher_m11 indicator signals.

The indicator draws a channel based on the value of the breakout of channel levels.

Kase DevStops. What all of this boils down to is that we need to take variance and skew into consideration when we are establishing a system for setting stops. Three steps that we can take in order to both better define and to minimize the threshold of uncertainty in setting stops are: 1. Consideration of the variance or the standard deviation of range. 2. Consideration of the skew, or more simply, the amount at which range can spike in the opposite direction of the trend. 3. Reformation of our data to be more consistent (this step is examined in detail in Chapter 81, while minimizing the degree of uncertainty as much as possible).

Printing GetLastError() and MqlTradeResult retcode as text description.

Trading panel based on class CDialog.

Instead of using "raw" prices" for calculations, Heiken Ashi Smoothed indicator is using smoothed/filtered/averaged prices instead.

Average penetration histogram

Virtual trading environment

A simple indicator that calculates rounded volatility of a financial asset. Volatility is calculated in points based on the maximum and minimum prices

Indicator Stochastic RSI

Long Short-Term Memory Neural Network - for time series analysis.

1...456789101112131415161718...184