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

Submit your code

This file replaces the WndContainer.mqh original file. It prevents the chart from being affected when you click and hold the mouse inside a container area.

The Exp_ColorSchaffJJRSXTrendCycle Expert Advisor is based on the ColorSchaffJJRSXTrendCycle oscillator change of position relative to the overbought and oversold levels.

The Exp_ColorZerolagJJRSX Expert Advisor enters the market when the ColorZerolagJJRSX indicator cloud changes its color.

A variant of the DeMarkerTrend_x10 indicator with the option to individually customize the input parameters for each DeMarker oscillator which are used to display the current trends

The Exp_CHOWithFlat Expert Advisor is based on the change of color of the CHOWithFlat indicator.

The indicator draws FatlMacdCandle indicator candlesticks of a higher timeframe as color filled rectangles using DRAW_FILLING buffers.

This script closes all windows of selected symbol or all windows of any symbol.

The Expert Advisor transfers to break-even and/or trails positions on every currency pairs or only on the current one.

Semaphore signal indicator based on the METRO_DeMarker indicator cloud color change algorithm.

NRTR is a trend indicator calculated using the CLOSE prices.

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.

Working with indicator iMA (Moving Average, MA) with a rigidly defined timeframe: D1.

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.

An example for calculating the lot value in accordance with the risk per trade.

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

Envelopes using the Color_QEMA_Digit MA, with an indication of trend direction and display of the last values of channel borders.

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.

The Expert Advisor trades in a channel. When a flat channel is found or when the market slows down, the EA places a pending order expecting the channel breakout.

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.

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.

1...474849505152535455565758596061...189