Latest Code Publications in CodeBase
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
- 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.
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
2025.12.19
There are more than
11,860 codes published in
Codebase
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
2025.12.16
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.
2025.12.15
New publications in CodeBase
2025.12.14
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.
2025.12.12
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).
2025.12.11
New publications in CodeBase
2025.12.09
Most downloaded source codes this month
2025.12.09
New publications in CodeBase
- Professional Close All Positions Panel Professional panel for closing positions with 6 smart filters. Close all, by type, by symbol, or by profit/loss. Real-time P&L display. Perfect for emergency exits and risk management. Includes safety confirmations.
- Function for calculating lot size from risk per deposit The function calculates the lot size of an open position. The opening price of a deal, the price of stop loss level and the risk per deal in per cent of the deposit are passed as parameters
2025.12.08
New publications in CodeBase
- Aklamavo Quarters Theory This indicator implements the "Quarters Theory" - a technical analysis concept that divides price movement into four quarters around a central base level. It's designed to work with multiple asset types (Forex, stocks, commodities, etc.) and provides visual quarter levels on the chart.
- Clickable button excample (close all positions) An example of adding buttons for your advisors. In this example, a button has been implemented to close all active positions for all instruments. In addition to the button event processing functionality, methods for closing positions relative to the symbol name and counting the number of positions relative to the symbol name are also implemented.
2025.12.07
Most downloaded source codes this week
- 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.
2025.12.07
New publications in CodeBase
- DeltaFusionLite DeltaFusion Lite is the simplified version of the DeltaFusionPro indicator for MT4. It calculates and displays Cumulative Delta and Net Delta, giving traders a clear view of buying and selling pressure within each candle. By analyzing the distribution of volume between bid and ask, it helps identify market sentiment shifts, potential reversals, and various types of divergences between price and volume.
- RSD Histogram Relative Strength Deviation Histogram
2025.12.05
New publications in CodeBase
2025.12.04
New publications in CodeBase
- AIS Extremum The indicator allows you to estimate the probability that the price has reached its maximum or minimum.
- Keyboard Working with keyboard data
2025.12.02
Most downloaded source codes this month
2025.12.01
New publications in CodeBase
- ErrorDescription - Updated library This library is an updated version of the ErrorDescription.mqh library published by MetaQuotes, with some features included.
- 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.01
There are more than
11,840 codes published in
Codebase
2025.11.30
Most downloaded source codes this week
- 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.
2025.11.30
New publications in CodeBase
- PACF_ACF The script calculates the autocorrelation and partial autocorrelation functions and displays them on a graph
- Tillson T3 Tillson T3 with EMA calculations done without auxiliary indicator buffers.
2025.11.28
New publications in CodeBase
- Positions Summary Info byPairs Script for displaying updating data on open positions.
- Dynamic Gaussian Channel This indicator builds a dynamic price channel using Gaussian smoothing to determine support and resistance lines. It calculates smoothed high and low price values for a given period, finds their extrema and displays three lines: upper resistance (maximum of smoothed high), lower support (minimum of smoothed low) and the middle line between them, forming an adaptive trading channel.
2025.11.27
New publications in CodeBase
- RSI MA Signal Indicator A simple signal indicator based on RSI and Moving Average. Draws Buy/Sell arrows when RSI is above/below 50 and Price is above/below MA.
- Comment A simple comment.
2025.11.25
Most downloaded source codes this month
- Heikin Ashi MT4 EA Designed to trade using Heikin Ashi candles. By smoothing price action and filtering out market noise, this EA creates a clear map of market direction, allowing traders to catch strong trends, avoid false reversals, and manage trades with confidence.
- Simple Expert Advisor based on WPR, Bollinger Bands and ATR indicators A simple strategy based on the signals of two indicators: Williams' Percent Range (WPR) and Bollinger Bands (BB). A position is opened only when the signals of both indicators coincide.
- Quantum Gold Silver Trader Quantum System - Uses quantum states and probabilities to make decisions.
2025.11.25
New publications in CodeBase
2025.11.23
Most downloaded source codes this week
- 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.
2025.11.23
New publications in CodeBase
- 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.
- Confluence Index Stoch+RSI+MACD MULTI TF Confluence Index Stoch+RSI+MACD
- Average Day Range Average Daily Range Indicator.
2025.11.19
New publications in CodeBase
- KSU_martin Closing martingale trades
- MACD-v MACD-v is a volatility-normalised variation of the classic MACD. It provides momentum, crossover and expansion/contraction signals with enhanced stability across multiple market conditions.
2025.11.18
Most downloaded source codes this month
- Quantum Gold Silver Trader Quantum System - Uses quantum states and probabilities to make decisions.
- The RSI Engine 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.
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
2025.11.18
New publications in CodeBase
2025.11.17
New publications in CodeBase
- Candlestick Analysis Report This script helps traders understand the distribution and breadth of candlesticks over a specific period, which can be useful in making trading decisions such as which Take Profit or Stop Loss to use based on historical values.
- 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.
2025.11.16
Most downloaded source codes this week
- 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.
2025.11.13
New publications in CodeBase
- Clean Market Watch - Removes All Symbols In the Market Watch Windows In One Go The Clean Market Watch script is a simple utility tool designed to quickly remove all symbols from your MetaTrader 5 Market Watch window with a single click. This is particularly useful when you want to start fresh with a clean workspace or when your Market Watch has become cluttered with too many symbols.
Purpose
Over time, traders often accumulate numerous symbols in their Market Watch window, making it difficult to focus on the instruments they actively trade. Manually removing symbols one by one can be tedious and time-consuming. This script automates the entire process, clearing all symbols in seconds.
- Caculater Margin EA Tools tính toán Margin theo lotsize, có thể tùy chỉnh đòn bẩy
- 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.
2025.11.12
There are more than
11,820 codes published in
Codebase
2025.11.11
Most downloaded source codes this month
- Babi Ngepet I share my code for expert advisor babi ngepet
- Quantum Gold Silver Trader Quantum System - Uses quantum states and probabilities to make decisions.
- HedgeCover EA Intelligent position protection with one-hedge-per-position logic. Features magic number separation, cooldown timer, and max hedges limit. Prevents infinite hedging loops. Free MIT license.
2025.11.09
Most downloaded source codes this week
2025.11.09
New publications in CodeBase
- Simple_Three_Inside_Pattern_EA A simple Expert Advisor that trades when the price forms the "Three From Within" pattern.
- ATR Cycles A volatility filter based on 3 ATR's: a fast ATR, a middle ATR, and a slow ATR
2025.11.06
New publications in CodeBase
- Statistical Zigzag It is a zigzag which creates new zigzag turning points based on passing a volatility threshold
- Simple Bar Timer It is a script to display the time remaining until next bar arrives.
2025.11.04
Most downloaded source codes this month
- Quantum Gold Silver Trader Quantum System - Uses quantum states and probabilities to make decisions.
- Fair Value Gap (FVG) Indicator The Fair Value Gap (FVG) Indicator identifies price gaps that occur when there is an imbalance between buying and selling pressure. It highlights areas where price is likely to return to fill the gap, providing potential trade entry points based on market inefficiencies.
- The RSI Engine 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.
2025.11.04
New publications in CodeBase
- Probability Theory Expert Advisor for Forex Probability Theory Advisor
- KopierMaschineMT5 KopierMaschine is a local copier of trades between different MetaTrader 4 and MetaTrader 5 accounts in any direction located on one computer with an intuitive interface.
- Data collector (profit/equity) I wrote this indicator to compare two modes, timeframes and analyze the settings of my EA. You can make adjustments to suit your requirements or add something. The data collected is saved to a file every 5 minutes (one file per instance).
2025.11.02
Most downloaded source codes this week
2025.11.02
New publications in CodeBase
- Custom Exponential Moving Average (EMA) Indicator for MT5 This indicator calculates and displays the Exponential Moving Average (EMA) on the MetaTrader 5 chart. Fully customisable period. Allows selection of the applied price (Close, Open, High, Low, Median, Typical, Weighted). Uses the standard EMA formula, initialised from an SMA of the first bars. Can be used as a standalone technical analysis tool or integrated into automated trading systems for trend-following and moving average crossover strategies.
- CVD (Cumulative Volume Delta) Lightweight CVD (Cumulative Volume Delta) for MT5 — M1-based, shows buy/sell pressure as candles with optional resets.
2025.10.31
New publications in CodeBase
- Price / Volume indicator One of the simpler chips for machine learning
- 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.
2025.10.28
Most downloaded source codes this month
- The RSI Engine 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.
- Pinbar Detector This MQL5 indicator identifies Upward (Bullish) and Downward (Bearish) Pinbars, displayed with customizable arrows (lime for upward, red for downward). It allows fine-tuning of detection parameters like tail body ratio and protrusion. Pop-up and push notification alerts signal new pinbars. Ideal for traders seeking precise reversal pattern detection.
- EMA_RSI_RISK-EA Expert Advisor for MetaTrader 5 that combines Exponential Moving Averages (EMA) and Relative Strength Index (RSI) to generate trading signals. Includes risk management features and trading time filter.
2025.10.27
New publications in CodeBase
- RSI MA Signal Indicator A simple signal indicator based on RSI and Moving Average. Plots Buy/Sell arrows when RSI is above/below 50 and Price is above/below the MA.
- Wave Weis Bar Force WaveWeisBarForce is a custom indicator based on Weis Waves logic. It accumulates volume into directional waves (bullish or bearish) and displays them as histograms with intensity levels. Bullish waves: 4 levels of green, from light to Lime. Bearish waves: 4 levels of red, from light to Red. WaveMax (white): shows the bar with the highest volume inside each wave. WaveClimax (yellow): highlights record accumulated volume across waves. This indicator helps traders visualise market pressure by volume accumulation and wave intensity, improving intraday and swing analysis.
2025.10.26
Most downloaded source codes this week
- Heikin Ashi MT4 EA Designed to trade using Heikin Ashi candles. By smoothing price action and filtering out market noise, this EA creates a clear map of market direction, allowing traders to catch strong trends, avoid false reversals, and manage trades with confidence.
- Simple Expert Advisor based on WPR, Bollinger Bands and ATR indicators A simple strategy based on the signals of two indicators: Williams' Percent Range (WPR) and Bollinger Bands (BB). A position is opened only when the signals of both indicators coincide.
- Quantum Gold Silver Trader Quantum System - Uses quantum states and probabilities to make decisions.
2025.10.23
New publications in CodeBase