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

Submit your code

The Exp_Fisher_org_v1 EA is based on the signals generated by the Fisher_org_v1 oscillator.

Semaphore signal indicator based on the relative smoothed rate of price change.

A simple trend indicator with calculation of rise and fall in High and Low prices.

The JSatl indicator implemented as a sequence of candlesticks.

Cauchy difference. The indicator shows the difference of arithmetic mean and geometric mean of the price.

Exp_X2MA_JJRSX trend-following trading system is based on ColorX2MA and ColorJJRSX indicator signals.

The trading system based on the three Stochastics signals from three different timeframes.

The trading system based on the three RVI oscillator signals from three different timeframes.

CCI experiment using adaptive calculation period.

The simplest Expert Advisor based on WPR.

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

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

CCI - very extended version of the "experiment".

An example of an Expert Advisor with a Trailing Stop implementation.

The MARE5.1 Expert Advisor is very easy to use. It uses the values of two Moving Averages (SMA) at the close of 0th, 2nd and 5th bar. The EA is configured to work on the M1 timeframe.

The ZigZag indicator plotted using the NRTR_extr algorithm.

OnTradeTransaction

NonLag smoothed inverse fisher transform of RSX (MetaTrader 5 version).

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

A trend indicator implemented as NRTR, with the possibility to generate alerts and send emails or push-notifications.

Detrended Synthetic Price (bars).

The script closes all positions of the current symbol.

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

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 RBVI_Histogram indicator with the timeframe selection option available in the indicator input parameters.

The indicator draws a channel using the High and Low values of a candlestick of a higher timeframe specified in the indicator input parameters.

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

If a trade is closed by Stop loss, the volume is doubled; if by Take profit the minimum volume is used. OnTradeTransaction is used to determine whether a trade was performed after the activation of Stop loss or Take profit.

Counting the number of series of bullish and bearish bars. Displaying the result as a chart. Saving the screenshot of the resulting chart. The script uses the CGraphic class.

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

Trading in a channel based on a Moving Average with the period of 220 and three Envelopes with the periods of 220 and different heights. Position trailing.

Balance of Power, introduced by Igor Livshin, attempts to measure the strength of buyers vs. sellers by assessing the ability of each to push price to an extreme level. Livshin published this indicator in the August 2001 issue of Stocks and Commodities Magazine. This version of indicator calculates the BOP exactly as it is described in the article where it was published.

UI

Ulcer Index (UI) - the volatility decrease index.

The Schaff Trend Cycle (STC) indicator detects up and down trends long before the MACD. It does this by using the same Exponential Moving Averages (EMAs), but adds a cycle component to factor currency cycle trends. Since currency cycle trends move based on a certain amount of days, this is factored into the equation of the STC indicator to give more accuracy and reliability than the MACD.

The RSI bands indicator helps in multiple ways, but mainly in visualizing on the main chart what price change would trigger the expected overbought or oversold signals.

As a logical step to filter out more the possible false signals, this variation of Schaff TCD RSI is using RSX (which is a smoother RSI than the "regular" RSI) to produce a smoother result.

The EA compares the opening prices of the zeroth and the second bar. It moves positions to a breakeven and/or enables trailing.

Trading on indicator Heiken Ashi Smoothed Oscillator. Settings for placing Stop Loss, Take Profit, and Trailing the positions.

Trend-following trading system Exp_AbsolutelyNoLagLwma_X2 based on the signals of two indicators AbsolutelyNoLagLwma

Two indicators AbsolutelyNoLagLwma from different timeframes, the area between lines being filled with a cloud, the color of which corresponds with the trend direction on the market

1...383940414243444546474849505152...183