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

Submit your code

Different view of the figures and the patterns of the day ....

Clear All StopLoss n TakeProfit on All Orders.

Here I propose a simple password verification scheme which uses MT4's built-in security engine providing DES/ECB encryption and does not require code re-compilation for each new customer.

Tipu MACD is one the popular indicators in the Market. The original code for Tipu MACD is modified by removing compatibility with Tipu Panel. This version of Tipu MACD is open for everyone who is interested in developing an Expert Advisor.

Building a moving line by a polynomial of the 4th degree. Extrapolate a sine curve and its axis. One value on each bar is removed from the drawn lines and a sliding line of extrapolated values is drawn, which is not redrawn.

With the help of this library it is possible to implement the ability to maintain positions with a simple trailing stop in any Expert Advisor.

YURAZ's library, determining the switch to dayllight saving time and revert to standard time

Ichimoku Kinko Hyo indicator is predefined to characterize the market trend, Support and Resistance Levels, and to generate signals of buying and selling.

Use this script to make own nonstandard timeframes.

Indicator Vegas.

The indicator searches for the patterns, displays the end of the D and C points on the screen.

An example of automatic running of the script when the timeframe or symbol is changed.

The indicators that can display several larger timeframes, japanese candlesticks and Fibo levels on a single chart.

The indicator is similar to 4Hour Vegas Model.

Display Candles from a higher timeframe on top of your current chart (ex: see H1 candles on top of a M5 line chart)

This is the standard MACD indicator drawing two flat lines instead of a signal line. It allows you to detect and trade flat markets.

Scripts to modify stop loss in buy or sell opened orders on current chart.

This is an updated version of b Clock.

All open trades must be of same symbol and type, e.g. all GBPUSD and all BUY. This script will close out your position using one large trade to hedge your position then using CloseBy() function to close all trades against the one large trade until all trades are closed. There can be a maximum of 500 open trades.

When we want to know how many times price will goes up and down 40 pips before breaking this channel, we will need Bounce Number tool.

The indicator Williams' Accumulation/Distribution, W_A/D is the accumulated sum of positive "accumulative" price movements and negative "distributive" ones.

This indicator will plot Fibonacci golden spiral on the chart.

This script will plot Fibonacci golden spiral on the chart.

In classical literature, the relative strength index is described as the "price-following oscillator that ranges between 0 and 100, and signals the market sentiment to change the trend at high (close to 100%) or low (close to 0%)...

An interesting indicator that plots the trading channel by fractals and adds a Fibonacci fan on top.

The Price Channel indicator calculates the highest high and lowest low of the trailing number of bars specified by the input Length.

Another version of popular ZigZag.

This script evaluates in points account history loaded into client terminal.

An indicator by the Natuseko Protrader 4H Strategy

MM Lines are drawn where support and resistance is.

It's an instrument for spread monitoring for a real and synthetic currency pairs.

A finer resolution channel made of three bar fractals.

ALGLIB math function library (v. 3.5.0) ported to MQL4.

This indicator adds H3, H6, H8 and H12 time frames into your charts.

DailyLines Vertical lines starting new Day with above name of the DAY. Period Separators with options to choose different styles.

Trade using Renko Boxes in MetaTrader 4.

"How much is a 1 pip movement on EURUSD (or any pair) worth in my currency?" - here's the answer!

The OandaX OrderBook Chart indicator is designed for displaying the history histogram of orders or positions history on the instrument with reference to the chart scale.

This indicator shows ADX indicator in another easy way. Buy when Bars is Green, Sell When Bars is Red.

The currency indices indicator with the ability to calculate CCI, RSI, Momentum, MACD and Stochastic.

12345678910111213141516...102