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

Submit your code

Creating profit labels on deals (closed trades) which also show in the strategy tester

Profit Maximiser (PMax) Indicator is an indicator created by integrating the moving average of the Supertrend indicator.

Countdown is an advanced indicator designed for traders who want to track the time remaining until the next candlestick or the next market open clearly and efficiently. With three flexible display modes (commentary, chart borders or next to price), this indicator offers a customisable solution to suit your trading needs.

This library will allow you to tranfser realtime quotes from MetaTrader 5 to external server application.

Aroon indicator created by Tushar Chande indicates if a long-term trend is going to an end or just pausing a little before a new movement.

Fisher RVI is an oscillator that modifies RVI (Relative Vigor Index) custom indicator values using Inverse Fisher Transform.

Laguerre RSI with Laguerre filter

Indicator to display existent and emerging harmonic chart patterns.

Adaptive efficiency ratio EMA

The VR Sync Chart Lite indicator is written for demonstration purposes and shows how it is possible to synchronize the object

The book "Neural networks in algorithmic trading with MQL5" is a comprehensive guide, covering both the theoretical foundations of artificial intelligence and neural networks and practical aspects of their application in financial trading using the MQL5 programming language.

The Moving Average of Oscillator (OsMA) is the difference between the oscillator and its smoothed value.

i-Regression Channel generates regression channel.

SuperTrend indicator.

ALGLIB math function library (v. 3.19) ported to MQL5.

Trading system based on XDPO_Histogram indicator signals.

The indicator is an example of smoothing a time series of the OsMA indicator by filtering harmonics of higher order.

Blau T3 ergodic candlestick oscillator with new display types and styles

Pivot Point indicator with an addition of 4 ways of calculating pivot points.

This version is using double smoothed ema, not some regular moving average.

RSI experiment with a simple addition of filled areas when floating levels are crossed.

The EasyAndFastGUI library allows creating graphical interfaces for custom MQL programs.

An indicator of custom patterns.

Unlike the original Schaff Trend Cycle, this version is using TEMA MACD for calculation, which makes it "faster" in determining (even compared to DEMA version) the trend changes and thus producing signals a few bars earlier.

The indicator calculates the inclination angle of the last segment of moving average and shows it in the chart together with the MA line and the line drawn from the last segment of moving average.

A trading system based on the signals of indicator XPeriodCandle.

Calculating the best trading interval.

MACD of RSI adaptive EMA - with floating levels

Simple harmonic index

The script obtains information about the number, types and sizes of input and output tensors in an ONNX model

This Include File checks for Market Open Hours. An EA to test it is also included.

This is an update of the "Simple Yet Effective Breakout Strategy". In this code, I have added some helper functions for prop firm challenges.

Script For Trap News High Impact

script to open a buy position at the current price in the MT5 window with a specified stop loss (in pips) and take profit (in pips)

Total Power Indicator (MetaTrader indicator) — is based on the two standard indicators — Bear Power and Bull Power. The indicator calculates how many bullish and bearish bars were there during a given look-back period and then calculates the proportional index for bears, bulls, and total (calculated as the absolute difference between bulls and bears) for the current bar. This way, we get continuous lines of the relative average bear and bull power over a period, removing the main disadvantage of the original Bear/Bull Power indicators — the lack of a long-term perspective. The original MetaTrader 4 version of Total Power Indicator was created by Daniel Fernandez of Asirikuy.com in 2011. The version for MT5 is now also available.

TelegramToMT5 is a MetaTrader 5 Expert Advisor that bridges Telegram and MT5 by displaying messages from your Telegram channels, groups, and private chats directly on your trading charts. Simply create a Telegram bot, add it to your desired channels/groups, and let the EA show all messages as comments on your chart in real-time.

Modern indicator that displays your daily trading statistics directly on your MT5 chart. Track your trading performance with a beautiful flat design panel showing lots traded, number of orders, and profit/loss for each day.

MSNR v5.31Plus AEU EA is an Expert Advisor for MetaTrader 5 based on Malaysian SNR body levels, Smart Money reaction logic, liquidity sweep, MISS, engulfing confirmation, trendline confluence, QML, CRT and DOL target projection. The EA is designed for XAUUSD and works best on the M5 timeframe. It scans higher timeframes such as W1, D1, H4 and H1 to build important support and resistance zones, then waits for price action confirmation on the execution timeframe. Main features: - Malaysian SNR body-level detection. - Higher-timeframe support and resistance scan. - Liquidity sweep, MISS and engulfing confirmation. - Trendline, QML, breakout-retest and CRT logic. - Confluence cluster system. - Session filter for Asia, Europe and US trading hours. - Risk management by account percentage. - Partial close at selected R multiple. - Break-even and safety guard options. Recommended settings: Symbol: XAUUSD Timeframe: M5.

A state engine to provide geometric signal validation for indicator signals

i-Regr is a MetaTrader 5 indicator. Regression Channel: Linear Regression Channel, Quadratic (Parabolic) Regression Channel, Cubic Regression Channel.

1...161718192021222324252627282930...210