Find us on Facebook!
Join our fan page

Use new possibilities of MetaTrader 5

Latest Code Publications in CodeBase

New publications in CodeBase

  • Supply Demand Zone + MSNR + Price Action + H1 ONLY This Expert Advisor is a multi-strategy automated trading system for MetaTrader 5 based on market structure, supply–demand zones, and price action confirmation. It detects trend direction using H4 Break of Structure (BOS), scans and manages HB, RBR, and DBD zones, and executes trades using No Supply/Demand, Outside Bar, Mera Mera, and Fakey patterns. The EA includes advanced zone lifecycle management, prevents zone recreation, applies risk-based position sizing, and supports limit and market entries with strict validation. Designed for accuracy, automation, and controlled risk execution.
  • ShowTradeLines Service This is a service to show entry/exit points of existing positions/deals as trend lines and/or arrows on charts.

Most downloaded source codes this month

  • 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

  • EA Duplicate Detector Allow the EA to determine whether there are duplicate EAs on the chart based on conditions.
  • RatioZigZag A modification of the ZigZag indicator, where the reversal moment is determined by a specified coefficient.

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

There are more than 11,910 codes published in Codebase

New publications in CodeBase

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

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

  • Price Action Dynamic Exit Strategy - Profit Shield pro Take it as profit guardian or market reversal detector. It is a script that acts as a safety net to protect profits when you're away. Instead of just waiting for a fixed Take Profit level, it monitors price behaviour and closes the trade if it shows signs of reversing before hitting your Take Profit.
  • 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

  • KA-Gold Bot MT5 KA-Gold Bot is an advanced trading advisor specifically designed for gold, utilizing the powerful combination of the Keltner channel strategy and two exponential moving averages (EMAs) - the 10-period EMA and the 200-period EMA. Principle of Operation: The 10-period EMA represents the average price cutting above/below the Keltner band, confirming an uptrend/downtrend. The price being above the 200-period EMA supports the uptrend/downtrend. This indicates that the uptrend/downtrend has been stronger than the previous 10 periods, considering the volatility over the last 50 periods. - Time frame: M15
  • 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.

New publications in CodeBase

New publications in CodeBase

  • Please delete Please delete
  • 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.

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

New publications in CodeBase

  • Hunter v2, Liquidity Library and Fvg Detection Library An advanced version of the Hunter EA that integrates Fair Value Gap (FVG) analysis with daily bias trading. This expert advisor offers two distinct trading modes, allowing for either immediate FVG-based entries or more precise encroachment-based entries that wait for price to confirm direction.
  • Hunter V1 The Hunter EA uses the FVGLibrary and LiquidityLibrary to detect market bias and make trading decisions. The EA operates on a specified hourly timeframe and uses a profit target to manage risk.

New publications in CodeBase

There are more than 11,890 codes published in Codebase

New publications in CodeBase

New publications in CodeBase

  • Builov Utilita - Strategy This tool is an indicator-calculator. It does not trade by itself — it instantly calculates a safe position size (lot) for your trade.
  • 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.
  • YY_Cross_2_Ma The two moving averages crossover strategy is one of the most common trading strategies in the financial market. It is based on the use of two moving averages (usually long and short term) and signals an entry into a position based on their crossover.

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.
  • Builov RSI Pro - Strategy EA Builov RSI Pro - Strategy
  • 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

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

Most downloaded source codes this month

  • YY_Cross_2_Ma The two moving averages crossover strategy is one of the most common trading strategies in the financial market. It is based on the use of two moving averages (usually long and short term) and signals an entry into a position based on their crossover.
  • Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
  • ZigZag HH HL LH LL Pattern Label Indicator (MT4) This indicator is an enhanced version of the standard ZigZag used in MetaTrader 4. It automatically detects and labels structural price points: Higher High (HH), Higher Low (HL), Lower High (LH), and Lower Low (LL). The indicator draws trend lines between ZigZag points and prints the market structure on the chart in real time. Useful for: • Market structure analysis (HH, HL, LH, LL) • Pattern recognition (Head & Shoulders, Quasimodo, Break of Structure) • Trend continuation / reversal confirmation • Dashboard scanners and multi-timeframe systems The code has been optimized to remove warnings, uses only MQL4-compatible functions, and ensures clean object management with timeframe tagging. Suitable for manual traders, system builders, and EA developers.

New publications in CodeBase

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

  • Open Range BreakOut Indicator for MetaTrader 5 The Open Range Breakout (ORB) indicator is a powerful technical analysis tool that identifies and tracks price breakouts from the opening range of trading sessions. This indicator is based on the concept that the high and low prices established during the first minutes of a trading session often serve as significant support and resistance levels throughout the remainder of the day. The indicator automatically calculates the opening range based on user-defined time periods, plots multiple price targets, and provides visual and audio alerts for potential trading opportunities. It is designed to help traders identify high-probability breakout trades and retest scenarios.
  • Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
  • Simple_Three_Inside_Pattern_EA A simple Expert Advisor that trades when the price forms the "Three From Within" pattern.

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

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

Most downloaded source codes this month

  • Simple_Three_Inside_Pattern_EA A simple Expert Advisor that trades when the price forms the "Three From Within" pattern.
  • Supertrend A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.
  • SAR_MACD_EA Macd is the first to indicate bearish or bullish direction, secondly SAR in correlation with price indicates a swing in direction (Sar Flip above or below price), third conformation is the sma 40 shifted 3 and the closed price above or below the sma.

New publications in CodeBase

Most downloaded source codes this week

  • KA-Gold Bot MT5 KA-Gold Bot is an advanced trading advisor specifically designed for gold, utilizing the powerful combination of the Keltner channel strategy and two exponential moving averages (EMAs) - the 10-period EMA and the 200-period EMA. Principle of Operation: The 10-period EMA represents the average price cutting above/below the Keltner band, confirming an uptrend/downtrend. The price being above the 200-period EMA supports the uptrend/downtrend. This indicates that the uptrend/downtrend has been stronger than the previous 10 periods, considering the volatility over the last 50 periods. - Time frame: M15
  • 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.

New publications in CodeBase

  • CDatetimeMsc CDateTime milliseconds extension + datetime supervisory variable extension
  • Intraday Triple Performance Set three crosses and monitor the daily percentage performance starting from a given time (that can also be set).

New publications in CodeBase

Most downloaded source codes this month

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778