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

Submit your code

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.

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.

Ещё одна разновидность Индикатора WcciPaterns, только в качестве осциллятора.

Indicator BAT ATR v1

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

Scripts to Close Orders under various conditions

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.

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.

i-Breakeven groups the open position by symbol and for the each of group shows: 1. The current equity level. 2. The estimated breakeven level.

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

This is the standard Heiken Ashi, but with the option to spot Dojis and color them differently.

Shown all TF candle direction on Chart.

The indicator allows to control the Strategy Tester speed.

This Indicator shows the potential breakout/stop levels.

Changing the size of the chart window is important in my EA, but it may serve as inspiration for others.

Fair Value Gaps indicator or 'imbalance areas' where markets often move back to.

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

Handy crosshair for MetaTrader 4.

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

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

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

The indicator shows levels of support/resistance.

Updating of version VIII.

Indicator LSMA AppliedPrice.

Индикатор Trading hours.

Indicator T3 RSI.

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

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

The indicator shows the channel

The indicator shows the channel

TradePrice-T03 indicator.

The MDAC indicator by Elder

Candle_Signal indicator. The alarm indicator.

Report generator

At Bookkeeper's request, I've made an "egzpert advizor" by the ZigAndZag indicator, published at: http://codebase.mql4.com/ru/3681

Indicator MACD with crossing.

Indicator BS_MarketPrice.

The indicator shows in a special terminal window the current symbol, the Bid/Ask rates, and the current SWAP for position LONG/SHORT, as well as floating SPREAD for a distant symbol... Let's see... Pokazuje w osobnym okienku aktualny instrument, Kursy Bi

123456789101112...104