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

Submit your code

Range BreakOut EA. The range is defined by the min number of bars and max width in pips. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

Monster Trend indicator that uses data from several time periods.

This script allows a user to find out instance_id of the running MetaTrader instance/installation.

This is MQL5 project packer: assemble all source and resource files from dependencies into a single ZIP.

Weighted deviation bands

I wanted to build a moving average which would create an alert when the price moves over the line by a user defined amount of points. It creates both bullish and bearish signals depending on the direction of market price moving through the MA. It is designed for slow length moving averages (default is 200-day MA). EDIT: I now added a second version of the indicator which uses Arrow buffers instead of ObjectCreate.

Click on candlestick to see its body range, high low range, upper wick range and lower wick range value.

The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.

This indicator calculate count of one direction movement in selected period.

A simple signal indicator based on RSI and Moving Average. Plots Buy/Sell arrows when RSI is above/below 50 and Price is above/below the MA.

The script illustrates control of chart properties using the classes from the Standard Library (CChart).

Using Perceptron, Automatic Learning

Trade signals based on "Bullish Engulfing/Bearish Engulfing" 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.

Symmetrical normalized CCI (Commodity Channel Index) with alternative (ultralinear and JMA) smoothing algorithms.

Stalin is one of the so-called «signal» indicators, as it provides a trader with accurate market entry points.

Superposition of RSI and DeMarker technical indicators.

Detrended Price Oscillator (DPO) shows the market overbought/oversold states and also can be used for getting buy/sell signals.

Two-pole super smoother filter from John Ehlers' book "Cybernetic Analysis for Stocks and Futures: Cutting-Edge DSP Technology to Improve Your Trading" is used in this indicator for moving average calculation.

The trend indicator made as NRTR (Nick Rypock Trailing Reverse).

The trend indicator that gives signals for performing deals. The indicator color depends on the market movement direction determined by the indicator position relative to the zero line.

The indicator calculates forecast prices of the daily price range. It shows resistance and support levels of current day using the prices of the previous day.

Modified CCIT3 indicator

The MultiMaRsiSignal indicator displays the information about the active trends using the five MaRsi-Trigger indicators' value from different timeframes.

Trading system using the Exp_ColorJVariation oscillator.

The advanced presentation of the Bollinger Bands indicator

This EA is based on SMA, ADX and SAR indicators.

The indicator draws candlesticks of a larger timeframe as color filled rectangles in accordance with the direction of the BlauTSStochastic histogram.

A trading system that uses the XD-RangeSwitch semaphore, signal indicator.

CTimeControl class for include to your EA for easy setting and checking your own trading time.

The Ozymandias_HTF_Signal indicator shows the trend direction and the signal based on the OzymandiasSign indicator.

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

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

This RVI oscillator analogue is calculated based on four Relative Vigor Index indicators.

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

The ColorMaRsi-Trigger indicator with the timeframe selection option available in the input parameters.

Bollinger Bands indicator with sound/email/arrow_display alerts.

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

This indicator is an example of smoothing the Bulls Power indicator timeseries by filtering high-order harmonics.

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

The ColorJFatlAcceleration with the timeframe selection option available in the input parameters.

1...757677787980818283848586878889...193