Watch how to download trading robots for free
Find us on Telegram!
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

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.

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

This indicator uses a combination of Bollinger Bands and Keltner Channels to capture moves from low to high volatility.

This indicator shows the last candle of all timeframes (M1,M5 ... D1) together with the actual price.

All Moving Average on the M1 Time Frame

Parabolic SAR for current TF and 3 next TFs with Alert. This indicator made by request of maks741 and with help of Nikolay.

Opens and closes orders using parabolic SAR signals

Trend of 8 pairs on one chart

Automatic EMA envelope.

123456789101112...104