2026.02.22
There are more than 11,930 codes published in Codebase
2026.02.21
New publications in CodeBase
- nProfit and Loss Positions Profit/loss calculator of positions (open orders)
- WPR Monitoring MTF Trend monitoring varous trends of timeframes in one timeframes
- MASTER-WINNERFX-Asim Trend based grid Expert Advisor for MetaTrader 5 using EMA and RSI indicators. Dynamic lot size is calculated from account balance with minimum and maximum lot protection. Initial trade opens when price confirms trend direction relative to EMA and RSI levels. Grid orders are added at fixed point distance using controlled multiplier. All trades are managed as a basket and closed at defined profit target or maximum loss level. Includes optional news hour pause and market close filter. No DLL or external services required.
2026.02.20
New publications in CodeBase
- Fractal Maturity Oscillator FMO The FMO indicator is a technical analysis tool that measures "trend age" using fractal cycles. Its purpose is to help traders determine whether a trend is still young (safe to follow) or over-aged (high risk). A Conceptual Synthesis of Psychology, Sociology, and Life Cycles This work presents a deep analysis of human life through a numerical matrix (3, 7, 39, 49), using it as a conceptual lens for understanding psychology, sociology, and developmental cycles. It is not a conventional scientific framework. Rather, it is a synthesized model — integrating esoteric, psychological, and sociological perspectives into a unified cyclical structure. The goal is to organize and interpret human development through layered, interacting cycles.
- nClose Orders Function for closing positions and deleting orders
2026.02.18
New publications in CodeBase
- SessionRangeBoxes Draws colored range boxes for the Asian, London, and New York sessions on any chart. Includes a stats panel showing average session ranges in pips and optional breakout alerts when price exits a session box.
- WPR for Overbought and Oversold Overbought and oversold indicators aim to determine where the price may experience a reversal.
- nCalculate Lot by Percent Function of lot calculation by risk percentage
- Timeframe Quality Analyzer Find Perfect Timeframe to trade
2026.02.17
Most downloaded source codes this month
- Price Action Intraday Trading - Expert for MT5 Price Action Day Trader is a robust, trend-following MQL5 Expert Advisor designed for intraday trading. It focuses on high-probability price action patterns Pin Bars, Engulfing Candles, and Inside Bar Breakouts while filtering trades through a dual Moving Average trend filter.
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
2026.02.15
Most downloaded source codes this week
- Price Action Intraday Trading - Expert for MT5 Price Action Day Trader is a robust, trend-following MQL5 Expert Advisor designed for intraday trading. It focuses on high-probability price action patterns Pin Bars, Engulfing Candles, and Inside Bar Breakouts while filtering trades through a dual Moving Average trend filter.
- Support and Resistance(SNR) Sentinel Indicator Adaptive Support & Resistance indicator that automatically detects, tracks, and updates the nearest valid S/R levels using configurable confirmation bars. Levels dynamically shift after confirmed breakouts and extend forward in real time.
- Candle Close Timer – MT5 Indicator Indicator Description – Candle Close Timer Name: Candle Close Timer Version: 1.0 Author: BENTRADE TRADING Link: https://www.mql5.com/en/users/dahmi_benali
2026.02.15
New publications in CodeBase
- WPR With TPSL WPR indicator in chart window with TPSL
- ZigZag BOS CHoCH Detection ZigZag BOS CHoCH Detection indicator is based on the original MetaQuotes ZigZag algorithm and extends it by detecting and marking market structure events. It tracks recent ZigZag swing points and automatically identifies Break of Structure (BOS) and Change of Character (CHoCH) using pivot trend confirmation. BOS and CHoCH levels are drawn directly on the chart with labeled horizontal lines for clearer price action analysis.
- Trend based on WPR This indicator combine WPR and total profit/loss. I don't know how to tell you more about this indicator but you can try it.
2026.02.11
New publications in CodeBase
- Multi-timeframe RSI scanner with visual dashboard and alerts Production-ready multi-timeframe RSI scanner with intelligent alert retry system. Monitors up to 7 timeframes simultaneously, highlights convergence zones when 3+ TFs align, and now auto-retries failed notifications to ensure you never miss critical overbought/oversold setups.
- Candle Close Timer – MT5 Indicator Indicator Description – Candle Close Timer Name: Candle Close Timer Version: 1.0 Author: BENTRADE TRADING Link: https://www.mql5.com/en/users/dahmi_benali
2026.02.10
Most downloaded source codes this month
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- MQL5 Programming for Traders – Source Codes from the Book. Part 1 The first chapter of the book introduces the MQL5 language and development environment. One of the new features introduced in the MQL5 language compared to MQL4 (MetaTrader 4 language) is support for object-oriented programming (OOP), which makes it similar to C++.
2026.02.09
New publications in CodeBase
- MW Download History Download all OHLC data history available and save it in a file, either for just one symbol or for many in Market Watch
- Support and Resistance(SNR) Sentinel Indicator Adaptive Support & Resistance indicator that automatically detects, tracks, and updates the nearest valid S/R levels using configurable confirmation bars. Levels dynamically shift after confirmed breakouts and extend forward in real time.
- Price Action Intraday Trading - Expert for MT5 Price Action Day Trader is a robust, trend-following MQL5 Expert Advisor designed for intraday trading. It focuses on high-probability price action patterns Pin Bars, Engulfing Candles, and Inside Bar Breakouts while filtering trades through a dual Moving Average trend filter.
2026.02.08
Most downloaded source codes this week
- Price Action Intraday Trading - Expert for MT5 Price Action Day Trader is a robust, trend-following MQL5 Expert Advisor designed for intraday trading. It focuses on high-probability price action patterns Pin Bars, Engulfing Candles, and Inside Bar Breakouts while filtering trades through a dual Moving Average trend filter.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- SuperTrend Quant Pro Elite: Adaptive Statistical Trend Engine An advanced, institutional-grade trend-following engine using Z-Score adaptive volatility, smart money volume filters, and a real-time MTF dashboard.
2026.02.03
Most downloaded source codes this month
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- MQL5 Programming for Traders – Source Codes from the Book. Part 1 The first chapter of the book introduces the MQL5 language and development environment. One of the new features introduced in the MQL5 language compared to MQL4 (MetaTrader 4 language) is support for object-oriented programming (OOP), which makes it similar to C++.
2026.02.01
Most downloaded source codes this week
- SuperTrend Quant Pro Elite: Adaptive Statistical Trend Engine An advanced, institutional-grade trend-following engine using Z-Score adaptive volatility, smart money volume filters, and a real-time MTF dashboard.
- TrendMomentumEA Automated trend-following EA using EMA, RSI, and Stochastic signals to open trades on the last closed candle with Stop Loss and Take Profit.
- Larry Williams XGBoost Onnx adoption of Larry William's method using AI Time-Series XGBoost
2026.01.27
Most downloaded source codes this month
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- Grid Master Overview Grid Master EA is an automated trading system that implements a bidirectional grid strategy. It places multiple pending orders above and below the current market price, capturing profits from market oscillations in both directions.
2026.01.27
New publications in CodeBase
- ShowTradeLines Service This is a service to show entry/exit points of existing positions/deals as trend lines and/or arrows on charts.
- Сode that records balance and equity charts and calculates additional optimization criteria If you have access to the Expert Advisor code, you can save balance and equity charts and calculate additional optimization criteria by adding additional code from this library.
- Binary tradng based on candle colors A simple binary trading strategy that counts candle colors.
2026.01.26
New publications in CodeBase
- VR Locker Lite - Trading strategy based on a positive lock Works using a positive lock; the trading robot creates one positive lock, and the trader decides what to do with it.
- EA Duplicate Detector Allow the EA to determine whether there are duplicate EAs on the chart based on conditions.
- VR Locker Lite - Trading strategy based on a positive lock Works using a positive lock; the trading robot creates one positive lock, and the trader decides what to do with it.
- Trading strategy Heads or Tails The classic version of the Heads or Tails trading strategy with the analysis of the signal block code.
2026.01.25
Most downloaded source codes this week
- Larry Williams XGBoost Onnx adoption of Larry William's method using AI Time-Series XGBoost
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
2026.01.25
New publications in CodeBase
- Project Template Generator This script serves as a practical example of how developers can programmatically work with files using MQL5. One of its key objectives is to demonstrate effective project file organization, which is essential for developers working on large-scale systems or aiming to create portable, self-contained projects. The concept can be expanded further and refined with additional ideas to support more advanced development workflows.
- RatioZigZag A modification of the ZigZag indicator, where the reversal moment is determined by a specified coefficient.
- MT4 Telegram Trade Notifier (Bot API) — Deal Alerts Utility MT4 EA that sends BUY/SELL deal notifications to Telegram via Bot API (WebRequest)
2026.01.23
New publications in CodeBase
- Sideways Martingale Martingale trend detector use onnx AI
- Market Structure Onnx Market Structure Expert Advisor use LightGBM (Light Gradient Boosting Machine)
- RiskSizer Panel Lite MT4 - Risk Percent Lot Calculator With One Click Buy Sell RiskSizer Panel Lite is a simple MT4 trading panel that calculates an estimated lot size based on your risk percent. Drag two chart lines to set SL/TP, then use one-click BUY/SELL for fast manual execution.
2026.01.22
New publications in CodeBase
- TrendMomentumEA Automated trend-following EA using EMA, RSI, and Stochastic signals to open trades on the last closed candle with Stop Loss and Take Profit.
- Position Size Pro Lite: Interactive Risk Calculator Panel A professional on-chart panel for instant lot size and risk calculation. Essential for manual traders using strict risk management.
- SuperTrend Quant Pro Elite: Adaptive Statistical Trend Engine An advanced, institutional-grade trend-following engine using Z-Score adaptive volatility, smart money volume filters, and a real-time MTF dashboard.
2026.01.21
New publications in CodeBase
- Trading strategy Heads or Tails The classic version of the Heads or Tails trading strategy with the analysis of the signal block code.
- RiskSizer Panel Lite MT5 - Risk Percent Lot Calculator With One Click Buy Sell RiskSizer Panel Lite is a simple MT5 trading panel that calculates an estimated lot size based on your risk percent. Drag two chart lines to set SL/TP, then use one-click BUY/SELL for fast manual execution.
2026.01.20
Most downloaded source codes this month
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- MQL5 Programming for Traders – Source Codes from the Book. Part 1 The first chapter of the book introduces the MQL5 language and development environment. One of the new features introduced in the MQL5 language compared to MQL4 (MetaTrader 4 language) is support for object-oriented programming (OOP), which makes it similar to C++.
2026.01.20
New publications in CodeBase
- Log Multi-Mode Logarithmic Transform Indicator.
- Larry Williams XGBoost Onnx adoption of Larry William's method using AI Time-Series XGBoost
2026.01.18
Most downloaded source codes this week
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
- Adaptive VWAP Institutional Adaptive VWAP Institutional: Multi-Asset Auto-Detection & DST-Accurate Session Resets (Forex 5PM NY Standard).
2026.01.17
New publications in CodeBase
- iCrosshair - Real-Time Candle Metrics on Hover Hover over any candle to see what MT5 doesn't show: Range size, Body percentage, Wick ratios. Smart, fast, and customizable.
- Risk calculator for MT 5 The indicator calculates your risk as a percentage and gives you the lot size that is acceptable for your risk. You only need to specify the risk in per cent and the stop size in pips.
2026.01.14
New publications in CodeBase
- BinanceQuotesDownloader Real-time display of Binance quotes
- Adaptive VWAP Institutional Adaptive VWAP Institutional: Multi-Asset Auto-Detection & DST-Accurate Session Resets (Forex 5PM NY Standard).
2026.01.13
Most downloaded source codes this month
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- MQL5 Programming for Traders – Source Codes from the Book. Part 1 The first chapter of the book introduces the MQL5 language and development environment. One of the new features introduced in the MQL5 language compared to MQL4 (MetaTrader 4 language) is support for object-oriented programming (OOP), which makes it similar to C++.
- ONNX Trader An example of a bot with an embedded machine learning model that is trained in python and saved in ONNX format.
2026.01.13
New publications in CodeBase
- ASZ - Adaptive Structure ZigZag A robust Market Structure analyzer that adapts to volatility. ASZ uses a Hybrid ATR engine to filter noise and detect reliable Swing points. Non-repainting on confirmed bars.
- Expert Advisor required to fetch news data for the FFC Calendar indicator. This is a utility Expert Advisor required to fetch news data for the FFC Calendar indicator. It uses native WebRequest to download data safely without DLLs. Install this in MQL4/Experts folder and run on a separate chart.
2026.01.11
New publications in CodeBase
- Session Daylight Gradient — Ambient Forex Session Overlay A lightweight chart overlay that paints a smooth “daylight” gradient across Pacific, Asia, London, and New York sessions—plus optional session separators, event labels, and “sunray” highlights for scheduled news. Includes UTC/Broker/PC time modes and a manual DST shift.
- CPlotManager (Auto Buffer and Plot Manager) Automates MQL5 buffer and plot index management. Eliminates manual counting, simplifies Z-order layering, and handles complex plot types (Candles, Color Lines) with a single line of code.
- The Playground Series v1 to V4 - A combination of trading concepts The Playground EA series was created for experimentation with Fair Value Gaps (FVGs) and liquidity concepts
- News Spread Risk Dashboard (Spike and Gap Monitor) A compact on-chart dashboard that monitors live spread behavior, tracks rolling Min/Max/Avg, and warns on abnormal spread spikes (news, low liquidity, rollover) using adaptive or fixed thresholds with optional alerts.
2026.01.11
Most downloaded source codes this week
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- BBMA Oma Ally OmniView It's like a bird's-eye view for BBMA Oma Ally fans. ust drag it onto the chart and you'll get all the BBMA signals running on the chart.
2026.01.10
New publications in CodeBase
- Wick Rejection Scanner Dashboard (Multi-Symbol / Multi-TF) Scan multiple symbols and timeframes for wick-based rejection candles and display the latest signals in a clean on-chart dashboard with strength scoring, signal age, optional markers, and alerts.
- Viral (1M+ views) 4 Hour Range Strategy coded and tested This EA is intended to test a popular trading strategy. My own backtest shows that this strategy does not work as it was intended
- PropGuard MT5 Daily Loss and Max Drawdown Dead-Line Visualizer (Dashboard and Line) A chart-based risk monitor for prop-firm style rules: draws a live “Dead-Line” price level showing where your Daily Loss Limit or Overall Max Drawdown would be violated, based on equity, open exposure, and optional trailing drawdown.
- Popular (1M views) 4 Hour Range Strategy coded and tested This EA is intended to test a popular trading strategy. My own backtest shows that this strategy does not work as it was intended
2026.01.08
New publications in CodeBase
- MT5 Telegram Trade Notifier (Bot API) — Deal Alerts Utility MT5 EA that sends BUY/SELL deal notifications to Telegram via Bot API (WebRequest)
- Uniformity Factor Script The script provides a quick estimation of an exponent/power factor for transformation of variable-length price increments into uniform distibution, that makes them a "random walk". The estimated value characterizes current symbol as more profitable when using in a particular trading strategy.
2026.01.06
Most downloaded source codes this month
- ONNX Trader An example of a bot with an embedded machine learning model that is trained in python and saved in ONNX format.
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- MQL5 Programming for Traders – Source Codes from the Book. Part 1 The first chapter of the book introduces the MQL5 language and development environment. One of the new features introduced in the MQL5 language compared to MQL4 (MetaTrader 4 language) is support for object-oriented programming (OOP), which makes it similar to C++.
2026.01.04
Most downloaded source codes this week
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
- Grid Master Overview Grid Master EA is an automated trading system that implements a bidirectional grid strategy. It places multiple pending orders above and below the current market price, capturing profits from market oscillations in both directions.
- Professional Order Manager Fox Wave Clean - Professional Order Manager Professional EA for efficient trade management with one-click position control. Clean design, powerful functionality.
2026.01.04
New publications in CodeBase
- Price Channel This is a simple price channel indicator allowing user to customize period and line colours. Often used in channel break strategies.
- Timeframe to short name This function gives me the shortened names of the timeframes Example: "M1" instead of "PERIOD_M1"
2026.01.02
New publications in CodeBase
- BBMA Oma Ally OmniView It's like a bird's-eye view for BBMA Oma Ally fans. ust drag it onto the chart and you'll get all the BBMA signals running on the chart.
- RSA Library for asymmetric encryption in MQL5 Securing data transfer between client and Server could be a big challenge for you as MQL5 programmer. You may have experience in using built in MQL5 encryption systems like AES.AES can securely encrypt your data but on the other hand is not secure when it comes to sending the AES key through insecure channels. You can only rely on asymmetric encryption systems Like RSA in such cases. you keep the private key at your server side and only share the public key with your clients. Even more you can use hybrid RSA_AES approach to archive more performance
- OnTickMulti Multisymbol OnTick.
2026.01.01
New publications in CodeBase
- iMy In the graphical representation, techanalysis represents the trend line to the right of the candles on the breakdown (in green). After the breakdown, the movement along the red line is assumed.
- Professional Order Manager Fox Wave Clean - Professional Order Manager Professional EA for efficient trade management with one-click position control. Clean design, powerful functionality.
2025.12.30
Most downloaded source codes this month
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- ONNX Trader An example of a bot with an embedded machine learning model that is trained in python and saved in ONNX format.
- MQL5 Programming for Traders – Source Codes from the Book. Part 1 The first chapter of the book introduces the MQL5 language and development environment. One of the new features introduced in the MQL5 language compared to MQL4 (MetaTrader 4 language) is support for object-oriented programming (OOP), which makes it similar to C++.
2025.12.28
Most downloaded source codes this week
- Simple_Price_EA The simplest Expert Advisor that analyses the price movement on a given number of bars and opens a corresponding position.
- Grid Master Overview Grid Master EA is an automated trading system that implements a bidirectional grid strategy. It places multiple pending orders above and below the current market price, capturing profits from market oscillations in both directions.
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
2025.12.27
New publications in CodeBase
- Coloured Bollinger Bands Indicating Narrowing and Widenning Phases A simple indicator based on Bollinger Bands showing its narrowing and widening phases with red/green colours.
- MA Price display The indicator is written by request on the forum.
2025.12.25
New publications in CodeBase
- Input_Struct Structure of input parameters
- StrategyTester in pips Tester statistics in pips with an early filter. This is how it should be done.
2025.12.24
New publications in CodeBase
- Simple_Pending_Orders_Time The Expert Advisor works with pending orders Buy Stop and Sell Stop according to the time specified in its input parameters.
- Simple_Price_EA The simplest Expert Advisor that analyses the price movement on a given number of bars and opens a corresponding position.
- iVIDyA indicator for mt4 VIDyA is only available by default in mt5, here is it's mt4 equivalent. Note if using it with an EA call it using the iCustom() function.
2025.12.23
Most downloaded source codes this month
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- MQL5 Programming for Traders – Source Codes from the Book. Part 1 The first chapter of the book introduces the MQL5 language and development environment. One of the new features introduced in the MQL5 language compared to MQL4 (MetaTrader 4 language) is support for object-oriented programming (OOP), which makes it similar to C++.
- ONNX Trader An example of a bot with an embedded machine learning model that is trained in python and saved in ONNX format.
2025.12.22
New publications in CodeBase
- Control_Trade_Sessions Library for trading session control. At startup it counts the time of trading sessions for all 7 days of the week (on Sat and Sun there can be cryptocurrency trading), up to 10 sessions per day. Then in OnTick() you can do checks, and if a tick came in outside the trading session, you can exit further processing of it.
- Grid Master Overview Grid Master EA is an automated trading system that implements a bidirectional grid strategy. It places multiple pending orders above and below the current market price, capturing profits from market oscillations in both directions.
- PHSB Screener This Screener was created to simplify the process of finding assets trading at discounted prices. Initial usage may take slightly longer due to the data loading process for all selected instruments. The tool can scan all available broker assets or be limited to specific asset classes.
2025.12.21
Most downloaded source codes this week
- Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
- Grid EA Pro A professional Grid advisor works according to RSI ( Relative Strength Index ) indicators. And has the function of Reducing the Drawdown on the account by overlapping unprofitable orders. The chart displays information about the profit. It can be a very useful tool, For manual trading.
- ONNX Trader An example of a bot with an embedded machine learning model that is trained in python and saved in ONNX format.
2025.12.19
New publications in CodeBase
- TickCompressor - with compression of 1 tick to 2-3 bytes on average Compression of tick data for storage in a compact form up to 3.5 times more compact than .tcs MQ files. And for fast work with them, because reading 3 bytes takes less time than reading 60 bytes of MqlTick structure.
- MQL4/5-JsonLib A JSON library that supports MQL4/MQL5
2025.12.17
New publications in CodeBase
- Open Trade This function performs the main logic of opening a trade. It calculates the opening price, take profit levels and stop loss based on the symbol information and parameters provided by the user. Prepare a trade request (MqlTradeRequest) with the necessary information such as symbol, volume, order type, slippage, comment, magic number, etc. Call the OrderSend function to send the trade request and get the result. SetTypeFillingBySymbol function: determines the order fulfilment type (Fill or Cancel, Immediate or Cancel or Return) according to the symbol's fulfilment policy. GetMinTradeLevel function: calculates the minimum trade level based on the freeze level and stop level of the symbol. Adjusts the minimum level to ensure that it is within certain limits and returns the result.
- ATR_Momentum_Colour combination of many familiar indicators for beginner traders