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

Submit your code

Trades using MA crosses on all timeframes.

Based on Zigzag Indicator.

WatchDog sends an e-mail when things go wrong, an order has opened or closed, on requotes, on log errors, on server shut down... Just drag the script in a chart window.

Three main pivot points : Daily - Weekly - Monthly.

Trades when the first parabolic sar dot occurs signaling a new trend

Any symbol Swap, Spread, Hi-Lo Today, Hi-Lo Week, Hi-Lo Mounth view to separate window.

Time indicator displays broker time and local computer time on the chart.

Take screenshot in the original chart size with labels (instrument, timeframe)

The Expert Advisor shows the properties of the signals, allows to modify the signal copy settings and subscribe or unsubscribe to the selected trade signal.

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.

Useful for those who use the DeMark TD lines in trading. It draws TD points, plots TD lines, calculates the current values of TD lines, calculates the targets.

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.

The indicator draws a price channel using the Hodrick-Prescott Filter.

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

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 hst2csv script is used for converting *.hst files to *.csv files, that can be imported into the MetaTrader 4 client terminal with no errors.

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.

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

1...101112131415161718192021222324...101