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

Submit your code

Compared to the original QQE indicator, this version instead of using trailing levels uses fixed levels to estimate overbought and oversold conditions.

The Henderson Filters are derived by minimizing the sum of squares of the third difference of the moving average series. Henderson's criteria ensures that when these filters are applied to third degree polynomials, the resulting smoothed output will fit exactly on these parabolas. The Henderson Filters are suitable for smoothing economic time series as they allow the cycles typical of the trend to pass through unchanged. They also have the property that they will eliminate almost all the irregular variations that are of very short frequencies of six months or less.

The STPMT (Medium Term Weighted Stochastics) indicator.

A channel filter indicator Darvas Box.

The indicator of expanding time zone corridors with eleven corridors, middle line and background color filling

Stochastic expansion indicator

Normalized Moving Average Slope indicator

At the specified hour, the Expert Advisor analyzes OHLC of the previous bar and sets pending orders

Expert Advisor based on iAO (Awesome Oscillator, AO)

Gann HiLo Activator/SuperTrend Bar indicator

True Strength Index (as originaly described by William Blau)

Indicator Round_Levels_XN draws multiple "round" levels nearest to the current price above and below it

Stochastic of filtered price

It calculates the Typical prices for bars #1, #2, and #3

Two identical trading systems (for long and short deals) based on the AdaptiveRenko indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Volatility bands

Rsi of average (rsioma) on chart version

Market mode - discontinued signal lines

Corrected extended (volatility ratio adaptive) Wilder's double smoothed ema - multi time frame version

This script will change the SL and TP of all open trades of the symbol to the price where the script is dropped off.

Trading the STRONG against the weak!

Converts trendlines into horizontal lines.

Simple script to see your current Profit Losses in Pips.

Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation

Moving averages are useless. In fact, some argue that the best way to lose money for a beginner are MA-Price crossover strategies. But is it possible to make it work?

The Chaikin's Oscillator (CHO) is the difference of moving averages of Accumulation/Distribution.

The eInTradePanel is a panel for manual trading, it has some useful functions. It needs the minimum space on the chart.

Control panel for the MQL5 Best Graphic Panel Contest.

This Expert Advisor performs the synchronization of charts.

Trade signals based on "Bullish Harami/Bearish Harami" 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.

Trade signals based on "Morning Star/Evening Star" candlestick patterns, confirmed by Commodity Channel Index (CCI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

True Strength Index (TSI) indicator by William Blau.

Ergodic Oscillator by William Blau.

KRI

While creating Kairi (KRI) oscillator, deviation of a price from its simple moving average is calculated. The result is shown in percentage of the average.

The variant of the ZigZag indicator optimized by its operation rate.

The indicator shows the moments of the market acceleration. Besides, it indicates appropriate time for buying, selling and market exit.

An indicator to put correlated currency charts on a given currency chart. It shows only bars currently. Color/monochrome mode is configurable. It also supports currency inversion for handling EURUSD & USDCHF like pairs.

CERDOnArray class is designed to calculate the Efficiency Ratio (ER) used in the Adaptive Moving Average (AMA) considering price movement direction. When the price is moving upwards the indicator has positive values, when it is moving downwards, - negative ones.

CMomentumOnArray class is designed for calculation of Momentum values on indicator buffers. Test_MomentumOnArray indicator is provided as the example of the class use.

Trend Indicator. There are 10 possible variants of changing the averaging of the signal line in this indicator.

1...585960616263646566676869707172...184