Find us on Facebook!
Join our fan page

Use new possibilities of MetaTrader 5

Latest Code Publications in CodeBase

There are more than 11,930 codes published in Codebase

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.

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

New publications in CodeBase

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.

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

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.

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

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

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.

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.

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

Most downloaded source codes this week

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.

New publications in CodeBase

New publications in CodeBase

There are more than 11,910 codes published in Codebase

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.

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)

New publications in CodeBase

New publications in CodeBase

New publications in CodeBase

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

New publications in CodeBase

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

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.

New publications in CodeBase

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.

New publications in CodeBase

New publications in CodeBase

There are more than 11,890 codes published in Codebase

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.

New publications in CodeBase

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.

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

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.

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"

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.

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.

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

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.

New publications in CodeBase

New publications in CodeBase

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.

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.
There are more than 11,860 codes published in Codebase

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.

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.

New publications in CodeBase

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