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

Submit your code

The indicator implements some of the most interesting approaches to measuring correlations

This is an example of ascending sort a struct list by a field. You can find out and customize the above algorithm depending on the purpose of use, this is the most basic example is also a direction to resolve the arrangement in an array of structure. The algorithm used in this example is Quick Sort and Merge Sort.

EA Spread lister shows the current, min and max values for all symbols / instruments.

This powerful tool filters the classic RSI through a moving average, providing a smoother, more reliable signal line for pinpointing entries, exits, and trend direction with unparalleled clarity.

Tillson T3 with EMA calculations done without auxiliary indicator buffers.

Function for closing positions and deleting orders

Function for modifying open positions and pending orders

Real-time prop firm rule tracker: daily drawdown, max drawdown, profit target progress, trading days count, and challenge status with visual progress bars. Presets for FTMO, MyFundedFX, E8, TFT, and Bulenox. Pure indicator — no trade interference.

One-click CSV export of trade history with P&L, duration & stats

The classic version of the Heads or Tails trading strategy with the analysis of the signal block code.

This is an indicator that helps identify Engulfing candle patterns.

Symbol Swap Panel: Effortlessly switch the active symbol on your chart while simultaneously adding the new symbol to Market Watch. This tool ensures seamless integration and access to real-time market data, optimizing your trading workflow.

Lightweight CVD (Cumulative Volume Delta) for MT5 — M1-based, shows buy/sell pressure as candles with optional resets.

The EA opens positions randomly (50/50 chance for Buy or Sell) when no position is open.

It will automatically plot a colored horizontal line on the previous open/highs/lows/close of the selected period, and it will make the lines consistent on this price when switching timeframes.

Anlayse swing highs and lows

Chaykin Money Flow (CMF)" indicator

Here are some examples of codes for set counters based on "Count"

Basic library to create Volume Profiles on chart.

is a text for the neutral network would like to know your opinion.

This CalculateHistoryProfit script version 1.0 is designed to calculate profit for a specified period using a chart panel.

BollingerBandsEA trades according to Bollinger Bands.

Beginner MetaTrader indicator — a very simple custom indicator that displays the local tops and bottoms on the chart with the red and blue dots near them. It analyzes the maximum and minimums on the certain period and then compares them to the range, in which the currency pair was trading, and if the top/bottom is significant enough, it marks it with the dot. This indicator redraws itself and thus should not be used for generating trading signals as the dots' positions may change. Both MT4 and MT5 versions of the indicator are available.

Point-and-Figure MetaTrader 5 indicator is an indicator that can plot a point-and-figure chart directly in the main window of your normal MT5 chart. You can set up all the point-and-figure method parameters, such as the box size and the reversal distance, according to your preference. In addition, you can control all the display parameters of the PnF chart. This point-and-figure indicator supports all sorts of alerts. It is based on real ticks data, and thus is available only for MT5.

This Script & EA enables coders to backtest their news based strategies which use the MQL5 Calendar.

This Bot detects the open of a new candle on any set timeframe, thereby making it easier to run a one-time code, place trades and call other functions. The code is written in the OnTick() function.

A logger with the ability to log specific modules or code sections

This indicator calls 3 other subwindow indicators. All files go in your Indicators folder.

Trading Gap Weekend, is it profitable?

Monthly VWAP (Volume Weighted Average Price) is an essential MQL5 indicator that calculates and displays the Volume Weighted Average Price for each trading month. It's a powerful tool for understanding long-term market sentiment, identifying key monthly fair value, and informing strategic decisions.

This simple indicator is to find out easily when the price reaches a particular time on any candle or time frame.

This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.

Automatic Fibonacci retracement indicator that intelligently detects market waves and draws Fibonacci levels without manual intervention.

CloseAllOrders is a powerful and user-friendly Expert Advisor designed to simplify trade management in MetaTrader 5. With an intuitive button interface directly on your chart, you can close all market positions and pending orders instantly with just one click.

The RSI Engine EA is a highly versatile automated trading robot for MetaTrader 5, designed to execute trades based on signals from the popular Relative Strength Index (RSI) indicator. Version 2.1 features optimized signal processing and enhanced stability. The EA provides a flexible framework with multiple RSI-based strategies, confirmation filters, and comprehensive trade management settings, making it suitable for both novice and experienced traders.

A volatility filter based on 3 ATR's: a fast ATR, a middle ATR, and a slow ATR

EA Tools tính toán Margin theo lotsize, có thể tùy chỉnh đòn bẩy

This is an experimental Last Structure Break (LSB) price action indicator that uncovers meaningful market structures and potential trading edges through intelligent support and resistance analysis.

Syncs all chart symbols to symbol of the chart the EA is attached to

Martingale trend detector use onnx AI

12345678910111213141516...198