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

Submit your code

Th Expert will set the TP based on the SL manually set using the input multiplier. Using this you can set 2,3,4 etc times the SL set.

Shows you profit history in real time.

The history_data_analysis_v3 script checks the history for missing bars, determines the size of the holes, gaps and makes a list of them.

Indicator StepMA Stoch KV1.

The indicator draws the channel of regression by High and Low prices.

Scripts to Close Orders under various conditions

Script closes all opened and pending positions.

This indicator will write value degrees of the lastest position of price at the current timeframes, and when position and condition of trend status was changed, the indicator will give an alerts.

This indicator is based on the Money Management approach used by VP from nononsenseforex.com It uses ATR to calculate Stop Loss, Take Profit and Volume you should enter into a trade based on the percentage of your Equity you want to risk.

Most EAs tend to close orders in take profit based on the distance in pips from the purchase price. However, this MQL4 code is based mainly on the current profit.

The ADXm indicator, unlike the traditional one, allows to see the positive and negative waves of the trend. The method for working with this indicator is the same as with the traditional one.

The script downloads history for all timeframes and symbols in the Market Watch.

Displays a Histogram of Momentum, ATR, CCI or RSI indicators relative to a specified level.

This Indicator shows the potential breakout/stop levels.

Function library and Experts for trailing (11 types). Simple usage of complex algorithms.

Spearman's Rank Correlation is a non-parametric method used in order to make statistical studies of relations between phenomena. In this case, the factual degree of parallelism between two numeric sequences will be detected.

Indicator RBCI

Updating of version VIII.

The indicator Acceleration&Speed shows speed and acceleration of a price change.

Functions for handling two dimensional string arrays. Usefull for prototyping.

The MDAC indicator by Elder

Indicator MACD with crossing.

Indicator BS_MarketPrice.

Automatic marking of the chart by the time and the timer.

Opens and closes orders using parabolic SAR signals

Automatic EMA envelope.

Reads all available instruments and their characteristics and generates an HTML report. Positive Swaps are highlighted.

Simple library that allows sending requests via HTTP protocol from new MQL4

The indicator shows candle end time and current spread.

Detrended Synthetic Price (histogram form)

Trading and analysis dashboard which usually provides great trading opportunities during daytime.

The Double Bollinger Band Strategy makes use of two Bollinger Bands in order to filter entries and exits in the forex market.

You never see like this indicator before. This indicator draw Dayly RSI Level on your chart like CAMERILLA and Pivot. The levels is very powerful and very matchful. Try it quickly.

PowerTrend V.2

This oscillator is based on Ehlers' Two Pole Super Smoother, converted as an oscillator, and smoothed using Ehlers' Instantaneous trendline.

This script opens a pending buy order by just point and drop the script in the place you want. The script will automatically place a "limit buy order" if you point and drop below actual bid. The script will automatically place a "stop buy order" if you

The indicator supports two functions: 1. Ask and Bid line customization(style, thickness) and 2. Second Broker spread comparison.

Simple one click trade panel, typically useful for scalpers and day traders.

Visualization of 3 previous daily bars with alarm.

This Script creats HTML Report To Your Current Chart. It contains a usefull information. Try it.

12345678910...101