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

Submit your code

Dynamic Trader Oscillator

This is a utility for beginning indicator programmers, or others, that want to have a look at values provided by OnCalculate and a few other functions. The indicator shows: 1) The most recent value provided with the most recent OnCalculate call. 2) The previous value from the previous OnCalculate call. 3) The first value from the first time onCalculate executed.

Smoothed Williams percent range

Trend indicator similar to Ichimoku Kinko Hyo, with a number of drawing options and calculation parameters.

To assist traders who wish to open multiple buy orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Buy is the number trades the trader wish to open instantly. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple buy orders, it can save traders valuable time and allow them to focus on other aspects of their trading strategy.

Fractals - adjustable period and prices for MT5

Sec-WebSocket-Key Generator

Counter attack candlestick pattern

Here is a simple example that shows how to download page(file) from Internet using the library wininet.dll.

One-click trading.

The indicator is based on the Elder's Impluse system.

This class provides methods for working with Windows *.ini files.

The library contains the following hash functions: adler32, CRC-32, MaHash8v64. Also it has functions for radix conversion of a number.

The script contains a class, that can be used to solve mathematical and logical expressions, defined as string.

Fast Trend Line Momentum (FTLM) and Slow Trend Line Momentum SLTM) indicators show the rate of price change.

The indicator transfers the price data to the new coordinates system associated with X2MA indicator values.

The indicator displays the charts of two symbols in one window.

The indicator of the arbitrage situation for spread consisting from two instruments

This indicator is the conversion of famous Igorad's indicator namely PriceChannel_Signal_v1 with re-enter feature.

The indicator changes the color of the bar to the color corresponding to the current trend, which is determined using the RVI indicator.

Class for exchanging data between programs. It allows to pass structures of arbitrary size via the global variables of the terminal from one program to another.

The script shows the trade volume in lots required to move the position to a desired level.

The Expert Advisor works both in normal mode with one positions, and in the HEDGE mode with multiple positions.

The Exp_PFE_Extr breakout trading system based on the signals of the PFE oscillator.

The Range Action Verification Index indicator implemented as a histogram of strength and direction of the current trend.

The Expert Advisor plots a Fibonacci based on the standard ZigZag indicator and traded rectracements from all levels. The levels are fixed and cannot be customized by the user.

Semaphore signal indicator based on the code of the RVIDiff indicator.

The vaMA indicator with the ability to replace averaging. It displays the most recent value as a price label with the possibility to round the channel levels up to a required number of digits. Additionally, it indicates the trend strength by colored dots based on the standard deviation algorithm.

Simple average spread per hour statistics output.

Composite RSI

T3 with floating levels

Indicator is already multi time frame version with alerts included.

A version that adds some averages not supported by built in standard types to the collection of averages in one single file.

One more average/smoother that due to its fractional calculation period possibility can be used to be made adaptive.

Simple trend visualizer.

Derived from the NRTR indicator, provided with a new visual display.

Well known BB Stops (Bollinger Bands Stops) indicator with some additions and further adapting to MetaTrader 5 usage.

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

Trading system based on the signals of the ICHI_OSC indicator

Heatmap of Averages.

1...67891011121314151617181920...184