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

Submit your code

CATROnArray is designed for calculation of ATR (Average True Range) values on indicator buffers. The example of use of the class is provided.

The CIchimokuOnArray class is intended for calculation of Ichimoku (Ichimoku Kinko Hyo) values on indicator buffers.

The indicator displays colored candlesticks depending on the current trend and considering Fibonacci levels correction and also gives alerts or audio warnings in case of a trend change.

The indicator showing volatility breakout as a histogram and serving as a signal for market entry/exit/position reversal or position volume increasing.

The indicator specifies the market volatility as a standard deviation.

This library allows an easy interface to MySQL.

Pearson correlation indicator shows the correlation between symbols.

Function Library for Working with Time Series: iTime, iOpen, iHigh, iLow, iClose, iHighest, iLowest, iBarshift. Short invocation version is available for all functions (with the current chart's symbol and period).

Implementation of the option to change the drawing mode, as exemplified by the CCI indicator.

The indicator of the arbitrage situation for spread consisting from two instruments

This script displays several subcharts in a single chart window according to the number of currency pairs in Market Watch menu.

An updated version of the CBitPic class with the ability to control drawing transparency

This indicator will plot divergence lines on the Awesome_Oscillator indicator and will give buy and sell signal by displaying arrows.

Three Moving Averages with three different timeframes on one chart.

Flat determining indicator.

The Triple Exponential Moving Average indicator implemented as a sequence of candlesticks.

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

Trend indicator with simple and clear indication of position opening moments.

The Exp_LeManTrend EA is based on the signals generated by the LeManTrend oscillator.

The indicator demonstrates the operation of obtaining the ticks using the "CopyTicks", and allows to compare the three modes of obtaining ticks.

Trading system based on Bezier_StDev indicator signals.

Volume Profile + Range v6.0 (former TPO). Distribution of deals by price levels at a given time interval. Displayed as a histogram.

Script for drawing a price markup.

ZigZag based on MACD histogram.

This is the Leader of the MACD as described by Giorgos E. Siligardos.

Gaussian Filter for apply to other indicators too.

The auto envelope automatically sizes channels by calculating a standard deviation for the last n bars.

Average using dr. Andreas Uhl's "correction method.

Pending Buy Limit (BuyLimit) and Sell Limit (SellLimit) orders. Using OnTradeTransaction().

The indicator is derived from the NRTR indicator.

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

The Exp_PercentageCrossover Expert Advisor is based on the change of the PercentageCrossover color, and provides the possibility to set a strict trading time interval.

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

An example of creating synthetic instruments for calculating the strength of RTS, USD, RUB based on futures contracts of the FORTS market.

The Expert Advisor allows checking the potential profitability of the ZigZagLW Addition indicator.

Rsi(var) with averages.

The Percentage Price Oscillator (PPO) is a technical Momentum indicator showing the relationship between two Moving Averages. To calculate the PPO, subtract the 26-day Exponential Moving Average (EMA) from the nine-day EMA, and then divide this difference by the 26-day EMA. The end result is a percentage that tells the trader where the short-term average is relative to the longer-term average.

One more from the creations of John Ehlers - nonlinear Kalman filter.

The Congestion Index attempts to identify the market's character by dividing the actual percentage that the market has changed in the past x days by the extreme range.

An assistant Expert Advisor. It moves positions to a breakeven and then enables trailing.

1...293031323334353637383940414243...189