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

Submit your code

Indicator to display existent and emerging harmonic chart patterns.

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

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.

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

Standard MFI oscillator implemented as a histogram rounding its values to the standard range.

Quantile bands - generalized version.

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

QWMA - the "CA" ("Corrected Average") version

A quick way to draw an arc-shaped channel in 4 mouse clicks.

MetaTrader 5 version of Candle Closing Time Remaining (CCTR) is an indicator which displays the remaining time for an open candle to be closed.

This non-trading utility generates custom symbol information on 1M chart.

A candlestick-based chart based on histograms Ang_Zad_C_Hist calculated on the Open, High, Low, and Close timeseries of the price chart.

MPO

Indicator MPO (Midpoint Oscillator) displays price movement without its trend component around its centerpoint. It is displayed as two lines: Price movement line and signal line. Centerline (MidPoint) is zero level of the oscillator.

Step average - average true range based

Indicator Traders Dynamic Index

Indicator Murrey_Math_Lv_Arr limiting the computer resources used in calculating and displaying the indicator on the chart

Self advance decline line

Set StopLoss by just dragging and dropping script on the desired price level.

This utility is simple example to add sound alert on connect / disconnect

A simple yet effective donchian channel breakout strategy. This strategy is timeless!

Gain/Loss Info MetaTrader indicator — displays the gains and losses for all candles where the given threshold is surpassed. The values are calculated in points and percentage. The indicator can calculate gain/loss in two modes: plain candlestick Close and Open difference, and as difference between current Close and previous Close. You can set minimum change limits (for pips and percentage), change modes, and you can also control font color of the output numbers. The indicator is available for both MT4 and MT5

This is a service to show entry/exit points of existing positions/deals as trend lines and/or arrows on charts.

A high-precision trend reversal indicator combining RSI exhaustion zones with candlestick breakout patterns.

A daily bias Expert Advisor that trades market dominance, analyzing previous day bullish vs bearish control with MA confirmation, and executing a single, minimum-volume trade with ATR-based risk management.

KSQ Fair Value Gap EA automatically trades institutional FVG zones with built-in regime detection to filter out low-quality setups in ranging markets. STRATEGY Detects 3-bar bullish and bearish FVG patterns. Enters on confirmed pullbacks into the zone. Each FVG fires once only. REGIME FILTER EMA trend bias, ADX strength filter, or both combined. Configurable higher timeframe (M15–D1). SL & TP Both support ATR-based or fixed-points mode, set independently. LOT SIZING Fixed lot or % risk-based — switchable from inputs. TRADE MANAGEMENT Break-even stop, partial close, and ATR/points trailing stop. RISK PROTECTION Daily and total drawdown kill switches. Max trades per direction cap. Session time filter. It's not yet optimised for any pair

The Money Flow Index (MFI) is the technical indicator, which indicates the rate at which money is invested into a security and then withdrawn from it.

Tools for monitoring spread of currency pairs

Functions for creating various objects and changing object properties.

AroonHorn_HTF_Signal shows a trend direction or a signal for performing a deal generated by AroonHorn_Oscillator_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment

The Fibo ZigaZag indicator allows to calculate the probable support and resistance levels using the Fibonacci ratios.

This is an combination of 3 separate indicators: TTM wave A, TTM wave B and TTM wave C.

1...91011121314151617181920212223...199