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

Submit your code

A collection of scripts for closing various types of orders.

The script copy objects (Trendline, Horizontal Line, Rectangle, Fibo) from active chart to all charts in this same symbol.

A few oscillators (RSI, CCI & PercentRange) drawn in the chart window.

Displays a line when the markets are opened.

Uses open price on D1 timeframe and current price to calculate % change for the day, and comments it in the main chart window.

Power of CHF indicator shows actual strength of currency CHF calculated of 7 pairs that contain CHF. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR CHF, USD CHF, GBP CHF, CAD CHF, AUD CHF, NZD CHF, CHF JPY.

Simple continuous trend-following strategy for buying and selling based on predefined conditions

Forex Trade Manager MT4 simplifies managing open orders in MetaTrader 4.

An implementation of the original Average True Range indicator by John Welles Wilder Jr. as described in his book—New Concepts in Technical Trading Systems [1978].

This class allows you to create buttons on the chart as if they were chart objects(have time and price coordinates) these objects can be dragged on the chart and when scrolling they stay at the same place. If you wan't to learn some Object Oriented Programming or if you wan't to understand how chartevents work or you wan't to create graphical interfaces, you can learn a lot from this.

Find the current winning / losing streak in MT4 based on filters

This script will calculate the total active and closed orders based on order types

The alarm indicator 3MA Cross w_Alert v2.

Modification of the DeMarker indicator with additional color indication based on the histogram

The indicator loads as a Menu on the menu bar. Click the Symbol Menu to open or close the symbol list. Click a selected symbol to change the chart symbol.

Bollinger Bands with customizable moving average method and applied price.

The presented indicator plots a fully-functional tick chart similar to the standard price charts, with the ability of the analysis using all the MetaTrader features.

Calculates profit (loss) of the current orders on the symbol.

Previous Candle Hi-Lo is used to check the last candle multi-timeframe position relative to the current price.

This expert is a tool to manage the level of profits or losses for each order without using stop loss or take profit. The expert applies virtual levels to close orders in profit or loss. You can use the expert to manage manually opened orders or manage orders opened by another EA. For more information about the expert, you can visit the product's page: https://www.mql5.com/en/market/product/27228

Checks a trading robot must pass

The MA-4H indicator displays the moving average of the selected timeframe on the chart of the current timeframe. The intersection of the two moving averages is implemented as optional. The external parameters allow to activate the second moving average in order to see their intersection.

The hst2csv script is used for converting *.hst files to *.csv files, that can be imported into the MetaTrader 4 client terminal with no errors.

The script plots one Fibo line based on the latest ZigZag. This is a remarkable tool to get rid of unnecessary work for those who constantly place Fibo grids (the majority).

Library of functions usefull for time calculations and determining if a report is imminent.

Indicator TDI-With Alerts. The description look in a code.

The indicator of the Keltner's channel.

The MACD is not required to be present on the chart. However, if a standard MACD is attached, the divergence lines will be drawn both on the chart and in the indicator window, and the indicator will use the MACD settings.

Linear Weighted Fractal Dimension Index (ternd vs notrend filter) plus Step EMA

The program-simulator v.2 for perfecting strategy, testing of indicators and trainings of trading skills.

An implementation of a HashMap in MQL4

This indicator draws a horizontal line at the Average/Breakeven Price for multiple positions.

Automatically draws Fibonacci retracements on chart.

This indicator is my attempt to estimate the real market value.

The indicator plots two Stowell patterns on the right edge of the chart: upper and lower.

The lookup and display of the divergences of different classes based on the data of the base indicator.

Tipu Renko Live is a modified version of Renko Charts that can be plotted on a normal time frame.

A simple function that creates a list of the available currency pair symbols.

The indicator is based on comparison of the current price to six simple moving averages with the periods 10, 20, 30, 40, 50 and 60. The values of the indicator are fixed: -100, -66, -33, 0, 33, 66, 100.

Very convenient to confirm any market entry signals.

1...111213141516171819202122232425...102