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

Submit your code

This indicator is a trend-momentum oscillator that tracks where price sits relative to its structural volatility channel using a normalized relationship between the Parabolic SAR and Envelopes.

A local client to client trade copier with custom dashboard in C# and transport pipe in golang , complete src is provided in archive ( socket based ver ) ultra low latency

The KCI Volatility Distance is an advanced, adaptive algorithm meticulously engineered to map market momentum and trend direction with pure precision. Utilizing a proprietary matrix-based calculation, this tool dynamically filters out market noise and provides a strictly quantitative perspective on directional strength. Built with a highly optimized Object-Oriented Programming (OOP) core, it is designed for both visual trading clarity and seamless integration into Expert Advisors or Machine Learning modules, ensuring ultra-light CPU performance across multiple assets.

The KCI-Directional Matrix (KCI-DX) is an advanced, physics-inspired analytical tool that extracts market kinematics by measuring price path length and volatility energy. Unlike conventional momentum tools, KCI-DX employs a dynamic Z-Score normalization combined with a Sigmoid activation function. This ensures the output is flawlessly bounded between 0 and 100, providing hyper-responsive trend strength identification and directional bias without distortion from historical extremes.

The Apex of Algorithmic Grid & Kinetic Momentum. Welcome to the KCI Native Matrix Engine—a merciless, mathematically driven algorithmic behemoth built natively for MetaTrader 5. Engineered for High-Frequency Trading (HFT) environments, this EA strips away bloated standard libraries and operates directly at the server routing level.

Super trend with basket TP and SL management

A read-only MT5 dashboard for risk-based lot sizing, account health, broker volume limits and current symbol exposure.

A multi currency multi symbols super trend dashboard

Variable Configurations to TestScalper Setup: Try an $\alpha$ of 0.45 and a $\beta$ of 0.12. The dashboard cells will flash changes rapidly, reacting instantly to short-term pullbacks.Swing Configuration: Lower the values to an $\alpha$ of 0.15 and a $\beta$ of 0.02. The matrix cells will stabilize, ignoring intraday market noise and preserving a clear view of macroscopic trends.

1. The Core Tracking Engine (Alpha-Beta Filter)At its core, the indicator utilizes an Alpha-Beta filter—a lightweight, steady-state version of a Kalman filter designed to track position and velocity.Predictive Calculation: Instead of simply averaging past prices like an SMA or EMA, the engine calculates a predicted price based on current velocity ($v$).Error Correction:

Dynamic approach vastly outperforms relying on a single MA.

Educational MT5 Expert Advisor using completed-candle EMA 9/21 alignment and RSI 14 filtering, with fixed-lot execution and a compact black-and-gold dashboard.

This indicator is essentially a GPS based on envelope as channel gauging and weather radar for the market wrapped into one. Instead of just giving you a bunch of lines to guess at, it calculates the mathematical "stretch" of the market and combines it with a multi-timeframe trend analysis to tell you exactly where you are. if price is outside band it is some fundamental shift in momentum happening if you are on wrong side then quit and stay away or go with trend on pull backs

An institutional-grade trading journal and behavioral analytics suite designed to run entirely inside MetaTrader 5. The application is built as a single-file, zero-dependency dashboard that replaces standard terminal objects with a high-performance, double-buffered vector graphics pipeline (CCanvas). It provides real-time quantitative analysis, behavioral risk auditing, a vertical scrollable monthly calendar, and interactive log cards with inline note editing directly on the chart.

Parallel use of the MetaTrader 4 and MetaTrader 5 order systems.

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

The VR Alert NT5 indicator warns the trader about the price reaching a specified level.

The Slope Direction Line indicator is displayed as a colored moving average line indicating the average market movement direction.

This is MQL5 version of Shved Supply and Demand written by Shved and upgraded by eevviill7 with history mode.

Holt's double exponential smoothing with linear forecasting

This version can use one of the 4 basic averages types for smoothing.

This script finds DeMark pivot points, displays them on the chart and indicates their dimensions.

Serialization and deserialization of JSON protocol. The code is ported from a high-speed С++ library.

A variation on the T3 theme that was made as a sort of envelopes using T3 for basic value.

Super trend indicator that uses hull average for calculation.

Holt's double exponential smoothing - the trend component.

Adaptive Laguerre filter trend.

Detecting the start of a new bar or candle in an Expert Advisor's OnTick() event handler.

To use martingale money management when a position is in loss and price hits any of specific distances.

This function performs the main logic of opening a trade. Calculates the opening price, take profit levels and stop loss based on symbol information and parameters provided by the user. Prepare a trade request (MqlTradeRequest) with the necessary information, such as symbol, volume, order type, deviation, comment, magic number, etc. Call the OrderSend function to send the operation request and get the result. SetTypeFillingBySymbol function: Determines the order fill type (Fill or Kill, Immediate or Cancel, or Return) based on the symbol's filling policy. GetMinTradeLevel function: Calculates the minimum operating level based on the freeze level and the symbol stops level. Adjusts the minimum level to make sure it is within certain limits and returns the result.

Indicator based on basic slope moving average and cloud around. Indicator shows two types of signals: prepearing - dot and entry - arrow.

This is a indicator displaying candlesticks patterns on a chart.

When applied to financial markets this method is usually used to determine the moments of prices extreme deviation from a "standard" level.

Class for displaying multi-line comments.

YMA

Moving average for prices (O+C+H+L)/4.

The Aroon indicator in the new visualization.

The newest version of ALMA.

The Dynamic Trend signal indicator draws a two-color trend direction line and adds signal arrows.

The library and iCanvas class simplify writing programs using Canvas.

Signal indicator iCrossAD. It shows possible reversals or price roll-backs.

1...8910111213141516171819202122...200