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

Submit your code

The OzFx system. It uses Accelerator Oscillator and Stochastic Oscillator.

Geometric Mean Moving Average is a simple moving average calculated by the geometric mean method.

Indicator AbsolutelyNoLagLwma with the timeframe selection option available in input parameters, alerting when the indicator changes its color.

Advisor scalper. Trading algorithm: Candle[0]> Candle[1] * 2. Taimeframe - 4H && Day.

Trading panel that allows user to define levels of trade by simply dragging lines.

Volume/Volatility Indicator

Commodity Channel Index using exponential moving averages.

This MT5 Expert Advisor combines multi-timeframe candlestick pattern analysis with fundamental event filtering to execute trades with disciplined risk management.

This advisor demonstrates an example of global variables usage. The task of the advisor: store the calculation result in a global variable and get the global variable value on new initialization.

Standard MACD version that can be located by setting the indicator timeframe value different from the chart one. The indicator also allows traders to select histogram and signal line smoothing algorithms.

XTRIX indicator implemented as a sequence of candlesticks. Candlesticks appear as a result of relevant price timeseries processed by XTRIX indicator algorithm.

Indicator Average Average True Range

Advisor for trading Gbp/Chf. Algorithm for bar opening prices. Timeframe H1.

This is a re-write of the old Solar Winds indicator for MQ5. There has recently been some 'excitement' about using this with other indicators for entry signals, and after a request to develop an indicator using it, I found that it was a classic re-painter - so I am contributing this code with an easy switch to allow seeing the indicator in re-paint versus non-repaint mode.

MoveStoploss moves the stoploss as the trade move in your direction at a specific distance. Version 1.1 has automatic trail error fixed.

The indicator of price movement relative to one selected time point

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

The indicator draws candlesticks of a larger timeframe as color filled rectangles in accordance with the colors of the CronexRSI indicator.

This is the "zone" indicator using Ehlers Nonlinear Filter for calculation.

This is a simple script that Closes all Orders and Positions available

MultiMACDSignal displays information on current trends using values of the six MACD indicators obtained from different time frames.

Display the actual stored value of a floating-point number (float or double type), with very high precision up to 55 decimal digits. This helps to debug exact value of floating-point numbers for other MQL5 programs.

CCI_Histogram_Vol indicator in the candlestick form

an in-place comparison sort

Optimized ATR adaptive Laguerre RSI

Nadaraya-Watson estimator

The script is best use to clean up all drawings ( Delete All Object, Comment, horizontal line, vertical line, arrows etc) on current chart. Please feel free to modify based on your needs.

This Expert Advisor (EA) for MetaTrader leverages a combination of technical indicators, including RSI, ATR, and moving averages, to identify high-probability trading opportunities. Equipped with dynamic lot sizing, trailing stops, and performance-based adjustments, it is tailored to optimize trading decisions and manage risk effectively in volatile market conditions.

The indicator predicts daily price ranges and draws them as filled rectangles.

The indicator is drawn as a colored cloud between the lines of Kaufman's AMA (Adaptive Moving Average) indicator and the price.

The SilverTrend_CrazyChart is a signal system similar to ASCTrend indicators.

Skyscraper_Fix indicator with the space between the average and NRTR lines filled with color

Intra-day Keltner channel

It's a two (2) pairs correlation system.

this is my first try at creating an EA from ground up - update 4

hybrid sorting algorithm that provides both fast average performance and (asymptotically) optimal worst-case performance

This expert advisor is based on the alligator indicator and bollinger bands indicator. Currency pair: GBPAUD Time frame: 15min

A colored cloud formed by two Stochastics with different timeframes.

A semaphore signal indicator on the basis of Williams' Percent Range Oscillator. The indicator identifies fast trends.

WPR_Histogram_Vol indicator with additional averaging of the resulting histogram

1...179180181182183184185186187188189190191192193194