Watch how to download trading robots for free
Find us on Facebook!
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 - 79

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.

This indicator shows trend line and channels using the BSI Indicator. Original work of https://www.mql5.com/en/code/13615

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.

This code block detects a New Bar or a New Candle when it has received.

- The script scans through the current chart for any available chart objects, - Counts and delete them accordingly - And log the the names of the objects on the chart respectively.

A simple replacement for a comment. Works in the tester 50 times faster than the standard function.

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.

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

CMO

In this version of Chande Momentum Oscillator the smoothed price is used for the calculations.

Modified CCIT3 indicator

USDX is an index which measures the dollar's value against a basket of six basic currencies

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.

Trading system based on ColorJ2JMAStDev indicator signals.

1...727374757677787980818283848586...191