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

Submit your code

The indicator shows the statistical characteristics of bars: the mean value, variance, skewness and kurtosis

The STD indicator with the timeframe selection option available in input parameters

An example of determining the moment when a pending order has triggered.

The XRSXCandleKeltner indicator with the breakout indication option

The Exp_ChandelExitSign_ReOpen trading system based on the signals of the ChandelExitSign indicator with trend following scaling.

The Expert Advisor closes all the current symbol positions opened on the account, if the current server time has exceeded the time limit specified in the input variables.

An Expert Advisor based on the "Arrows&Curves" indicator.

The XRSIDeMarker_Histogram indicator with the possibility to change the indicator timeframe in input parameters.

This version of Heiken Ashi Zone Trade indicator is made to display values in a separate window - that way it will not interfere with the other on-chart indicators and can be easier to read the states in some cases.

The indicator of the lowest tops and the highest bottoms.

Handy functions for comparison, rounding, formatting and debugging of doubles (prices, lots and money).

Fibonacci Pivot points indicator that can draw any number of levels for any of the known timeframes usable by MetaTrader 5.

The EA uses the following indicators: iADX (Average Directional Movement Index, ADX), two iMAs (Moving Average,MA) - one indicator at CLOSE prices and another one at OPEN prices, iOsMA (Moving Average of Oscillator, OsMA).

Trend Envelopes indicator that uses ATR for the price change calculation.

Trend direction and force

Average Penetration indicator displayed as bars.

Fan WRSI indicator

Ergodic TSI (True Strength Index) as described by William Blau

Indicator RSI Overlay

Advance Parabolic Time/Price System

A logging library similar to Log4j but for MQL.

Hurst Exponent - optimized version

KA-Gold Bot is an advanced trading advisor specifically designed for gold, utilizing the powerful combination of the Keltner channel strategy and two exponential moving averages (EMAs) - the 10-period EMA and the 200-period EMA. Principle of Operation: The 10-period EMA represents the average price cutting above/below the Keltner band, confirming an uptrend/downtrend. The price being above the 200-period EMA supports the uptrend/downtrend. This indicates that the uptrend/downtrend has been stronger than the previous 10 periods, considering the volatility over the last 50 periods. - Time frame: M15

The Indicator paints the bars according to the Trade Zones, as proposed by Bill Williams.

The Volumes indicator shows volumes with different colors depending on the volume changes.

Draws 96 line MAs with only 100 lines of code (uses CMyBuffer class).

The advantage of FRAMA is the possibility to follow strong trend movements and to sufficiently slow down at the moments of price consolidation.

This oscillator measures the ratio between the sum of positive increments and sum of negative increments for a certain period.

Indicator for Woodie’s CCI trading strategy.

It uses martingale, the number of doublings is limited.

Adaptive Momentum from John Ehlers' book "Cybernetic Analysis for Stocks and Futures: Cutting-Edge DSP Technology to Improve Your Trading".

The indicator shows the average percentage value of the last candlesticks overlap. It is useful for those, who enters the market manually using limit orders during price consolidation, as it allows to select order direction. Blue line - recommended BUY-LIMIT, red one - SELL-LIMIT.

The indicator building Stop Loss levels lines according to BrainTrend1 trading system data with preliminary price timeseries smoothing.

Typical unnormalized oscillator displayed as a color histogram.

Moving Average Envelopes.

Trading signals module for MQL5 Wizard. Karacatica indicator's color arrow serves as a market entry signal.

The indicator creates a channel and provides the possibility to configure it with automatic tuning.

Introducing the example of visualization of optimization results in real time (balance curve dynamics and an Expert Advisor statistical parameters).

The class for localization/multilingual support of text messages in user MQL5 programs

The indicator to display time ranges

1...212223242526272829303132333435...185