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

Submit your code

MACD indicator with histogram, can be applied any timeframe (higher or lower than the current chart's timeframe).

The DRAW_HISTOGRAM2 drawing style is used for plotting the values of two indicator's buffers as a histogram.

VininI Cyber Cycle - Identify cyclical movements of price, based on VininI_Cyber Cycle(V2).mq4 by Victor Nicolaev (2009)

The DRAW_COLOR_SECTION drawing style is used to plot sections with different colors, the colors are specified in the color buffer.

The DRAW_COLOR_BARS style draws bars based on values of four indicator buffers, containing Open, High, Low and Close prices. This is the advanced version of the DRAW_BARS style, that allows you to specify individual color for each bar from predefined color set.

Set of Keltner Channels based on the universal smoothing.

Combined power and trend direction indicator.

Autotrendlinien generates a channel in the direction of an existing trend.

StepMA made as the Nick Rypock Trailing Reverse (NRTR) indicator.

Moving average with the linear regression algorithm.

The hybrid of digital and analog filters that displays larger timeframe values at a smaller one in a minimized way.

Modification of Bollinger Bands ® trend indicator.

CEROnArray class is designed to calculate the Efficiency Ratio (ER) used in the Adaptive Moving Average (AMA). The example of use of the CEROnArray class is presented.

Candlesticks length volatility indicator useful for tracking gaps on the market and having the settings analogous to the Bollinger Channel. The indicator can show flats and trend beginnings.

The Expert Advisor shows the use of the free LibCustomChart library for the automatic connection of the Expert Advisors and indicators to iCustomChart custom charts created on the basis of custom history files.

Multi-Williams Percent Range trend indicator.

The indicator displays a series of internal, external and single directed closing and prompts exit points on short-term trend trading

Adaptive filter with the ability to calculate the Laguerre polynomial of any order

The indicator to determine the trend and its directions.

The class is designed for calculation of a technical indicator Average Directional Movement Index Wilder (Average Directional Movement Index Wilder, ADX Wilder) using the algorithm of the ring buffer.

There are a lot of users who searched for iBarShift function like in MQL4. But this function is no more include in MQL5, mainly because MQL5 provides all necessary basic, low-level, functions to process such thing in a library.

A trend indicator drawn in the form of a colored histogram.

This indicator is a modification of classical Awesome indicator. It computes the smoothed rate of change of two exponential means.

The OsMA indicator implemented as a sequence of candlesticks.

This indicator is an example of smoothing the DeMarker indicator timeseries by filtering high-order harmonics.

A trading system based on the signals of the Heiken_Ashi_Smoothed indicator.

NRTR_HTF_Signal shows a trend direction or a signal for performing a deal generated by NRTR_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

The RSIdivCandle indicator. Colors the candles based on the RSI oscillator.

The Exp_PPO_Cloud EA is based on the signals generated by the PPO_Cloud oscillator.

Semaphore signal indicator based on the values of the Accelerator Oscillator and Awesome Oscillator indicators by Bill Williams, which features alerts, sending emails and push-notifications to mobile devices.

The BalanceOfPower_Histogram indicator with the timeframe selection option available in input parameters.

This is one more possible way of making MACD — as a candles, without the price and signal line.

The indicator plots the candles based on 4 averages: averages of Open, Close, High, Low.

The ZigZag based on the OsMACandle oscillator.

It shows the tick price history (Bid/Ask) within all visible bars.

This is a volume weighted Wilder's DMI (the real ADX).

This Expert Advisor closes all positions if the total loss/profit exceeds a predefined limit.

The Expert Advisor opens and closes at a certain time comparing two iMA indicators having different periods. A trade having a specified volume is opened at a specified symbol. Setting Stop Loss and Take Profit. Select position type: Buy or Sell.

The trading system based on crossing of the DI+ and DI- lines of the Fractal_ADX_Cloud indicator.

The Fractal_Momentum indicator with the timeframe selection option available in the input parameters.

1...232425262728293031323334353637...183