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

Submit your code

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

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

Opening a position opposite to the closed one. Trades are processed in the OnTradeTransaction function.

Works with pending Buy Stop and Sell Stop orders. The EA uses the iMA (Moving Average, MA) indicator with a VERY large period equal to 590.

Dtm

An oscillator in the DRAW_FILLING style, using digital filters.

Variation of a long known and useful MACD indicator using DEMA (Double Exponential Moving Average) instead of using EMA (Exponential Moving Average) for MACD calculation, and DSL (Discontinued Signal Lines) and instead of using one signal line uses two. That way it sort of introduces levels as well as signal lines and, judging from tests, it seems to be better in avoiding false signals and it can be used in (short term) reversals detection.

This version extends the Instantaneous Trend Line indicator with a sort of bands to make it easier to spot trend change and to filter out some false signals that can be produced if only the slope of the ITL indicator is takes for a signal.

A trend signal indicator.

The EA waits for the price to pass XXX points within NNN ticks.

Schaff Trend RSI multi timeframe version.

A trading system based on object Fibonacci Lines (OBJ_FIBO) and on indicator Resistance & Support

An Expert Advisor based on indicator iADX (Average Directional Movement Index, ADX).

ADX trend - smoothed

This version of QQE is also using RSX (a smoother RSI without a lag) in order to further purify the signals.

Keltner Channel calculated as JMA (Jurik Moving Average) +- ATR distance for the bands.

This version of Schaff Trend Cycle uses a much "faster" moving average than EMA (NonLag MA) for that calculation which makes the resulting MACD "faster" and thus the resulting Schaff Trend Cycle "faster" to to market changes.

Trend direction and force - smoothed

Corrected RSI

The indicator looks for bars without one or two wicks. DRAW_ARROW drawing style.

RSI adaptive EMA ribbon

The indicator defines Harami patterns and features alerts, emails and push notifications

Track Cyclical indicator

The indicator displays a sloping trend line. Its parameters are set when the indicator is launched by a trader. The trend line defines the signal trigger level. The trend line breakthrough activates signals accompanied by emails and push notifications.

GHLA indicator

Hilbert transform phase accumulation adaptive RSX

Indicator Rubicons CCI Cross

Indicator Stochastic_Histogram provides alerts and sends email and push notifications when the main and signal lines intersect, accompanied by a change in the color of the signal cloud

Another variation of the strategy based on the current candle being higher or lower than the previous one

TMACD Divergence indicator

The XFisher_org_v1_Vol oscillator with additional indication in the form of colored squares at the zero level, when entering the overbought and oversold zones in the trend direction

The Multi timeframe Elder's Safe Zone indicator

The Expert Advisor uses Buy Stop and Sell Stop pending orders. Martingale.

A trading system based on breaking through iFractals

Indicator Multi timeframes Bill Williams Accelerator Oscillator

Simple intraday support resistance

Forex Trade Manager MT5 simplifies managing open orders in MetaTrader 5.

The Swing High/Low Identifier for MetaTrader 5 marks significant swing highs and swing lows directly on your chart with color-coded arrows. This tool helps traders quickly identify key price levels, which can serve as resistance and support, and is ideal for trend reversal analysis, support and resistance mapping, and enhancing price action strategies. By highlighting these crucial swing points, it provides valuable insights for making informed trading decisions and optimizing trading strategies.

Trade signals based on "3 Black Crows/3 White Soldiers" candlestick pattern, confirmed by Relative Strength Index (RSI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The example of chart background image, created using the object of OBJ_BITMAP type.

Stochastic Oscillator by William Blau.

1...8687888990919293949596979899100...188