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

Submit your code

It draws a channel with recommendations.

Report generator

Set of functions for calculating optimization results.

automatically converts M1-data to M5/M15/M30/H1/H4/D1 in a single run

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

A trend following indicator that implements Dennis Gartman and Bill Eckhart trading system. Commonly known as "The Turtle Trader".

This indicator will Draw Fibonacci Tools such as Retracement, Arc, Fan, Expansion, Time Zones. Based on ZigZag indicator.

Connect your indicator to Telegram with 3 lines of code This sample code enables to connect your indicator to Ofir Blue, the first trading application for Telegram

Multi buylimit and buystop orders are script files that enable traders to place multiple orders with ease. With just one command, traders can place multiple buylimit or buystop orders using either a target price or pips. By default, the pips value is set to 400, which means the trade will be placed 400 pips away from the current market price for a 5-digit broker. This setup includes stop-loss and take-profit levels, which can be adjusted based on the trader's preferences. Notably, these orders come with a level of flexibility that enables traders to fine-tune their trading strategies. For instance, a trader can opt to set the stop-loss level to zero if they do not use stop-loss.

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.

This is another flavour of the original divergence indicator. It detects divergence between price and MACD indicator and gives Buy or Sell signals according to the divergence type.

This indicator places semaphore points on the maximum and minimum of a higher, medium and lower period. Similar to Advanced Get, but without waves numeration.

An effective trade system, it determines the levels of support/resistance, rollback, trend reverse by a complex mathematical algorithm.

Indicator RSI with Trend Catcher signal.

Alert indicator that allows to move the signal via the mouse.

In this field give a brief description of your script (1-2 sentences).

The MACD Ichimoku indicator uses the Ichimoku structure but applied to MACD values. It tells an entire story in itself which is one of the Ichimoku system strengths.

Close all trades after reaching defined profit or loss

Check out any MQL5 closed positions on a chart.

Connecting to MySQL server from new MQL4.

The purpose of the present code is to demonstrate how easy it is to create color scales, color gradients and heatmaps with the MQL4 language and functions.

Possible uses: Mark session open/close, mark time of regular news release, any other relevant time.

The indicator allows to control the Strategy Tester speed.

The Mass Index is intended for detection of trend turns based on changes in the bandwidth between the maximal and the minimal price. If the bandwidth expands, the Mass Index increases, if it narrows, the index decreases.

The OsMACD indicator is a combination of the colored Moving Average of Oscillator(OsMA) and Moving Average Convergence/Divergence(MACD) indicators.

Universal trend utility for near predictions and making decisions by "stops" and/or "stops/reversals" of the orders.

A set of scripts for quick drawing the Elliott waves.

CustomCandle draws candlesticks of a larger and, perhaps, non-standard (for MT 4) timeframe in the current chart.

Plotting the ROC indicators of two custom types (including Momentum) and periods in one window.

A new High and Low Levels every day .. it is perfect levels

Probably the best Awesome Oscillator (AO) available with zero line crossover and signal line alerts.

Record the performance of individual strategies real time in offline charts.

This script opens a pending sell order by just point and drop the script in the place you want.

This set of scripts has been designed to scale-in your trades as price action runs in your favor. This will maximize profits due to proper pyramiding, decrease the impact of unprofitable trading decisions and in general, make your life easier.

Export text to Excel in real time using native DDE library provided by Windows

Record, storage and displays of data, fully tick chart in MetaTrader.

Taking a Closer Look at the Workings of the ZigZag Indicator.

This is a Class for the new MQL4 that parses JSON. It requires the Hash.mqh class.

The indicator of divergences on 30 oscillators of choice.

This MT4 indicator is to count down the remaining time as the format HH:MM:SS

123456789101112...102