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

Submit your code

Indicator of volumes accumulated.

Panel indicator with the date on closed positions.

Working with pending Buy Limit and Sell Limit orders. Grid of pending orders.

The EA based on iCCI (Commodity Channel Index, CCI) indicator plus managing position volumes using martingale.

The EA based on iMACD (Moving Average Convergence/Divergence, MACD) and iStochastic (Stochastic Oscillator).

SuperTrend indicator

VZO

Indicator VZO

A modification of standard indicator iStochastic (Stochastic Oscillator, STO) - now you can manage levels #1 and #2 from your EA.

On-chart RSI

This is the version 2 of my script to export the trade history from MT5 selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software. More columns were added and fixed minor errors. The code for processing and exporting data was rewritten.

Scans multiple symbols looking for when the price crosses a pivot point or when xxPoints Near or bounce off pivot then it alerts the trader.

Correlation market state

An indicator lets you specify the number of bars separately before and after the current High / Low (fractal) can.

The ZigzagColor_Channel plots a channel by connecting the ZigZag peaks and ZigZag bottoms.

Trade signals based on reversal candlestick patterns is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Trade signals based on "Morning Star/Evening Star" candlestick pattern, confirmed by Stochastic indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The script downloads historical data (for the current symbol), available at trade server.

Trade signals based on "Bullish/Bearish Meeting Lines" candlestick pattern, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

BrainTrend2 is an indicator of the market trends that assigns colours to candlesticks according to the trend direction.

BrainTrend2Stop is a trend reversal detection indicator, it is displayed by the stops line. Intersection of the line indicates trend reversal and the time to close previously opened positions.

Multi-currency Expert Advisor functional module for organization of an access to any historical data with a request result processing.

This indicator determines trend power and direction.

New CCalendarInputBox control element of the IncGUI library has been designed for date and/or time input.

Ergonomic Parabolic SAR. The indicator itself is a two-color one and it also adds large colored dots that appear during each trend reversal.

The indicator acts in a fully opposite way comparing to the adaptive moving averages during a trend market: in case of a definite trend, both indicator lines (Lead Sine and Sine Wave) move parallel to each other and show the trend direction by their location relative to each other; in case of a flat, the Sine Wave indicator quickly reacts on the market swing movements.

DeMarker indicator with the possibility to select smoothing algorithms that is made in color with dynamically changing oversold and overbought levels.

The HLCrossSig for WPR is considered as a trend indicator, since it is intended for "catching" trends. However, it's a pretty complex and informative indicator that allows excluding the psychological and emotional influence from trading.

This library allows an easy interface to MySQL.

Adaptive Exponentially Smoothed Moving Average, based on StdDev indicator.

This indicator draws a period of operation that specifies trade start time and trade stop time.

Export MQL5 live data to Excel (DDE)

This is Bollinger Bands %b indicator for MetaTrader 5.

Trading signals module based on Delta ZigZag indicator.

FuzzyNet library for developing fuzzy models was written in C#. While converting to MQL5, 8 membership functions and 4 defuzzification methods for Mamdani-type systems were added to the library.

The script tests the computer in 45 performance tests. It is possible to compare the performance of VPS/VDS servers.

The Exp_FRASMAv2 Expert Advisor is based on change in color of the FRASMAv2 moving average.

The MACD histogram, based on the FATL and SATL digital filters with color indication of trends.

ZigZagOnParabolic with its values displayed as fractal labels.

BB MACD is a MACD indicator variation with an addition of Bollinger bands

The Expert Advisor opens and closes positions at the predefined moments in time.

1...789101112131415161718192021...184