Latest Code Publications in CodeBase
2025.01.18
New publications in CodeBase
- Symbol Swap Panel Utility Symbol Swap Panel: Effortlessly switch the active symbol on your chart while simultaneously adding the new symbol to Market Watch. This tool ensures seamless integration and access to real-time market data, optimizing your trading workflow.
- Symbol Swap Panel Utility Symbol Swap Panel: Effortlessly switch the active symbol on your chart while simultaneously adding the new symbol to Market Watch. This tool ensures seamless integration and access to real-time market data, optimizing your trading workflow.
2025.01.14
Most downloaded source codes this month
- BuySellZigZag Double ZigZag draws virtual Buy and Sell levels on the price chart.
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
- ZigZag Step Points Another version of ZigZag, where the step size for changing the direction of the segment is set in price points.
2025.01.12
Most downloaded source codes this week
2025.01.12
New publications in CodeBase
- Trend Equilibrium Indicator TrendEQ The Trend Equilibrium Indicator TrendEQ dynamically analyzes market movements by combining momentum and volatility. By scaling momentum with the market’s volatility, the TrendEQ provides a reliable measure of trend strength and direction.
- Candlestick patterns This is a indicator displaying candlesticks patterns on a chart.
2025.01.07
Most downloaded source codes this month
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- SuperTrend SuperTrend indicator.
2025.01.06
New publications in CodeBase
- Strategy report output into a chart This script was developed for displaying saved Strategy report from the Strategy Tester into a chart.
- day of week The indicator shows the names of the days of the week as text labels on the chart.
2025.01.05
Most downloaded source codes this week
- Surfing - 2 EMA strategy This is a pretty simple startegy that follows trend. Recommended time frams is D1.
when close price brakes up the EMA build based on high prices given that RSI is above 55 and RSI is above its Moving average - we buy.
when close price brakes down the EMA build based on low prices given that RSI is below 45 and RSI is below its moving average - we sell.
system closes previose trade if there is opposite signal
system uses take profit and stop loss as well as trailing stop
- BollingerBandsEA BollingerBandsEA trades according to Bollinger Bands.
- MQL5 Programming for Traders – Source Codes from the Book. Part 7 The final seventh part of the book discusses the advanced capabilities of the MQL5 API, which will be useful when developing programs for MetaTrader 5. These include custom financial symbols, built-in economic calendar events, and general-purpose technologies such as networking, databases, and cryptography.
2025.01.05
New publications in CodeBase
2024.12.31
Most downloaded source codes this month
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
- SuperTrend SuperTrend indicator.
- Examples from the book "Neural networks for algorithmic trading with MQL5" The book "Neural networks in algorithmic trading with MQL5" is a comprehensive guide, covering both the theoretical foundations of artificial intelligence and neural networks and practical aspects of their application in financial trading using the MQL5 programming language.
2024.12.30
New publications in CodeBase
- Script to Map Market Watch Symbols Based on Similarity This script is a reference solution for mapping symbol names configured by users in MetaTrader 5 EAs or scripts to the actual names provided by the broker.
It uses the Levenshtein distance algorithm to automatically identify the most similar symbol in Market Watch.
It is ideal for developers facing compatibility issues with prefixes or suffixes in symbol names.
This is a customizable starting point to adapt to any specific needs.
- Perfect Trailing StopLoss Copy these into any EA you are busy coding and you"ll have a trailing sl
the only things you'll need to change would probably be InpMagic for your magic number or you could just copy my code as is , Remember to add COrderinfo ord; and CPositionInfo pos;
2024.12.29
Most downloaded source codes this week
- Examples from the book "Neural networks for algorithmic trading with MQL5" The book "Neural networks in algorithmic trading with MQL5" is a comprehensive guide, covering both the theoretical foundations of artificial intelligence and neural networks and practical aspects of their application in financial trading using the MQL5 programming language.
- MQL5 Programming for Traders – Source Codes from the Book. Part 7 The final seventh part of the book discusses the advanced capabilities of the MQL5 API, which will be useful when developing programs for MetaTrader 5. These include custom financial symbols, built-in economic calendar events, and general-purpose technologies such as networking, databases, and cryptography.
- Surfing - 2 EMA strategy This is a pretty simple startegy that follows trend. Recommended time frams is D1.
when close price brakes up the EMA build based on high prices given that RSI is above 55 and RSI is above its Moving average - we buy.
when close price brakes down the EMA build based on low prices given that RSI is below 45 and RSI is below its moving average - we sell.
system closes previose trade if there is opposite signal
system uses take profit and stop loss as well as trailing stop
2024.12.24
Most downloaded source codes this month
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
- SuperTrend SuperTrend indicator.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
2024.12.24
New publications in CodeBase
- Buffers for each hour (binary) and an hour buffer from 0-23 - for data collection purposes Prototype for data collection.
Dummy buffers for the data window (for data collection purposes) for the hour of the day, and an additional buffer for the hour of the day. Comments the hour of the day.
- Surfing - 2 EMA strategy This is a pretty simple startegy that follows trend. Recommended time frams is D1.
when close price brakes up the EMA build based on high prices given that RSI is above 55 and RSI is above its Moving average - we buy.
when close price brakes down the EMA build based on low prices given that RSI is below 45 and RSI is below its moving average - we sell.
system closes previose trade if there is opposite signal
system uses take profit and stop loss as well as trailing stop
2024.12.22
Most downloaded source codes this week
- Price increase Indicator Price increase Indicator
- MarketPredictor MarketPredictor for MetaTrader 5
The MarketPredictor is an innovative Expert Advisor (EA) for MetaTrader 5 that leverages mathematical models such as sine functions, Fast Fourier Transform (FFT), sigmoid functions, and Monte Carlo simulations to analyze and predict market movements. This project is designed for developers, math enthusiasts, and traders interested in combining technological and financial innovations.
Feel free to suggest, discuss, and implement code ideas directly in this thread. Whether it’s new features, improvement suggestions, or strategies – every contribution is welcome to further develop and optimize the MarketPredictor.
You’re also welcome to add me to clarify questions privately, collaborate on the GitHub project, or send me your feedback directly. Let’s cook up something amazing together and take this project to the next level!
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
2024.12.21
New publications in CodeBase
2024.12.17
Most downloaded source codes this month
- simple mt5 trade copier this is a copier template
- SuperTrend SuperTrend indicator.
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
2024.12.15
Most downloaded source codes this week
- BuySellZigZag Double ZigZag draws virtual Buy and Sell levels on the price chart.
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
- ZigZag Step Points Another version of ZigZag, where the step size for changing the direction of the segment is set in price points.
2024.12.12
New publications in CodeBase
- Price increase Indicator Price increase Indicator
- MarketPredictor MarketPredictor for MetaTrader 5
The MarketPredictor is an innovative Expert Advisor (EA) for MetaTrader 5 that leverages mathematical models such as sine functions, Fast Fourier Transform (FFT), sigmoid functions, and Monte Carlo simulations to analyze and predict market movements. This project is designed for developers, math enthusiasts, and traders interested in combining technological and financial innovations.
Feel free to suggest, discuss, and implement code ideas directly in this thread. Whether it’s new features, improvement suggestions, or strategies – every contribution is welcome to further develop and optimize the MarketPredictor.
You’re also welcome to add me to clarify questions privately, collaborate on the GitHub project, or send me your feedback directly. Let’s cook up something amazing together and take this project to the next level!
2024.12.11
There are more than
11,430 codes published in
Codebase
2024.12.10
Most downloaded source codes this month
- Hammer Indicator The code above is a "Hammer" indicator that detects candlestick hammer formations (bullish and bearish) and inverted hammer formations (bullish and bearish) on a MetaTrader 5 chart. This indicator identifies price reversal patterns by calculating the size and ratio of the candlestick wicks based on adjustable parameters: MaxRatioShortWick, MinRatioLongWick, and MinCandleSize. When a pattern is detected, the indicator displays a colored arrow near the candle’s lowest or highest price according to the pattern’s direction. The code also includes functions to create and delete objects automatically when the indicator is initialized or stopped.
- AutoFibo indicator of two last swings based on ZigZag The AutoFibo indicator is an advanced Fibonacci retracement tool that automatically draws Fibonacci levels based on the ZigZag pattern. This indicator is designed to help traders quickly identify potential support and resistance levels in trending markets.
- Lot calculator - risk management tool This tool allows you to calculate the correct lot size of the next trade by following some simple money management rules.
2024.12.08
Most downloaded source codes this week
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- SuperTrend SuperTrend indicator.
2024.12.07
New publications in CodeBase
- ZigZag Step Points Another version of ZigZag, where the step size for changing the direction of the segment is set in price points.
- BuySellZigZag Double ZigZag draws virtual Buy and Sell levels on the price chart.
2024.12.03
Most downloaded source codes this month
- AutoFibo indicator of two last swings based on ZigZag The AutoFibo indicator is an advanced Fibonacci retracement tool that automatically draws Fibonacci levels based on the ZigZag pattern. This indicator is designed to help traders quickly identify potential support and resistance levels in trending markets.
- SuperTrend SuperTrend indicator.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
2024.12.03
New publications in CodeBase
2024.12.01
Most downloaded source codes this week
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
- SuperTrend SuperTrend indicator.
- Examples from the book "Neural networks for algorithmic trading with MQL5" The book "Neural networks in algorithmic trading with MQL5" is a comprehensive guide, covering both the theoretical foundations of artificial intelligence and neural networks and practical aspects of their application in financial trading using the MQL5 programming language.
2024.11.29
New publications in CodeBase
- CloseAgent Optimal closing tool with Bollinger Bands and RSI.
- Range Levels The indicator draws the nearest levels of the specified price range.
2024.11.26
Most downloaded source codes this month
- Simplified "EuroSurge" Expert Advisor This expert opens trades based on signals from multiple technical indicators.
- b-clock Show minutes and seconds left before new candle is appeared.
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
2024.11.24
Most downloaded source codes this week
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
- SuperTrend SuperTrend indicator.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
2024.11.19
Most downloaded source codes this month
2024.11.17
Most downloaded source codes this week
- simple mt5 trade copier this is a copier template
- SuperTrend SuperTrend indicator.
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
2024.11.16
New publications in CodeBase
- Get min margin in to csv The script MinMargins.mq5 is designed to help traders quickly calculate and document the minimum amount of money required to open a position with the smallest lot size for all symbols available in the Market Watch. This data is saved to a CSV file for easy review and analysis.
- MT4 to MT5 Convertor (MT5Compat.mqh) A new interface library has been developed to simplify the process of converting MT4 indicators and Expert Advisors (EAs) to MT5. This library supports most of the MetaTrader 4 functions, offering developers a unified solution for cross-platform compatibility.
- MT4 to MT5 Convertor (MT5Compat.mqh) A new interface library has been developed to simplify converting MT4 indicators and Expert Advisors (EAs) to MT5. This library supports most of the MetaTrader 4 functions, offering developers a unified solution for cross-platform compatibility.
2024.11.15
New publications in CodeBase
- SUPERMACBOT The SUPERMACBOT is a fully automated trading robot that combines the power of the Moving Average Crossover strategy with the MACD Indicator to deliver precise and reliable trade signals. This Expert Advisor is designed to work seamlessly on all symbols and timeframes, offering versatility and adaptability for traders across various market conditions.
- Comment A simple replacement for a comment.
Works in the tester 50 times faster than the standard function.
- PPF - Past Present Future The same PNB from Yousufkhodja Sultonov.
2024.11.13
New publications in CodeBase
2024.11.12
Most downloaded source codes this month
- 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.
- SuperTrend SuperTrend indicator.
- b-clock Show minutes and seconds left before new candle is appeared.
2024.11.10
Most downloaded source codes this week
- Hammer Indicator The code above is a "Hammer" indicator that detects candlestick hammer formations (bullish and bearish) and inverted hammer formations (bullish and bearish) on a MetaTrader 5 chart. This indicator identifies price reversal patterns by calculating the size and ratio of the candlestick wicks based on adjustable parameters: MaxRatioShortWick, MinRatioLongWick, and MinCandleSize. When a pattern is detected, the indicator displays a colored arrow near the candle’s lowest or highest price according to the pattern’s direction. The code also includes functions to create and delete objects automatically when the indicator is initialized or stopped.
- AutoFibo indicator of two last swings based on ZigZag The AutoFibo indicator is an advanced Fibonacci retracement tool that automatically draws Fibonacci levels based on the ZigZag pattern. This indicator is designed to help traders quickly identify potential support and resistance levels in trending markets.
- Lot calculator - risk management tool This tool allows you to calculate the correct lot size of the next trade by following some simple money management rules.
2024.11.10
New publications in CodeBase
2024.11.05
Most downloaded source codes this month
2024.11.03
Most downloaded source codes this week
- AutoFibo indicator of two last swings based on ZigZag The AutoFibo indicator is an advanced Fibonacci retracement tool that automatically draws Fibonacci levels based on the ZigZag pattern. This indicator is designed to help traders quickly identify potential support and resistance levels in trending markets.
- SuperTrend SuperTrend indicator.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
2024.10.31
New publications in CodeBase
- Hammer Indicator The code above is a "Hammer" indicator that detects candlestick hammer formations (bullish and bearish) and inverted hammer formations (bullish and bearish) on a MetaTrader 5 chart. This indicator identifies price reversal patterns by calculating the size and ratio of the candlestick wicks based on adjustable parameters: MaxRatioShortWick, MinRatioLongWick, and MinCandleSize. When a pattern is detected, the indicator displays a colored arrow near the candle’s lowest or highest price according to the pattern’s direction. The code also includes functions to create and delete objects automatically when the indicator is initialized or stopped.
- Day Of Week, Week Of Year and other marks in Data Window and on chart WeekDays indicator displays Day Of Week, Week Of Year, Day Of Year or Bar Index in the Data Window, and optionally in labels on the chart.
2024.10.29
Most downloaded source codes this month
- Position Risk Calculation Tool An indicator that dynamically calculates risk (in percentages and money) based on the lot size and stop loss
- AdaptiveTrader Pro EA This Expert Advisor (EA) for MetaTrader leverages a combination of technical indicators, including RSI, ATR, and moving averages, to identify high-probability trading opportunities. Equipped with dynamic lot sizing, trailing stops, and performance-based adjustments, it is tailored to optimize trading decisions and manage risk effectively in volatile market conditions.
- The Roofing Filter The Roofing Filter Indicator was created by John Ehlers ("Cycle Analytics for Traders" pg. 80 - 82).
2024.10.27
Most downloaded source codes this week
- Simplified "EuroSurge" Expert Advisor This expert opens trades based on signals from multiple technical indicators.
- b-clock Show minutes and seconds left before new candle is appeared.
- Volume Profile This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.
2024.10.25
New publications in CodeBase
- AutoFibo indicator of two last swings based on ZigZag The AutoFibo indicator is an advanced Fibonacci retracement tool that automatically draws Fibonacci levels based on the ZigZag pattern. This indicator is designed to help traders quickly identify potential support and resistance levels in trending markets.
- Range Forecast H1 The indicator displays the actual range of the hourly candle in percent and the calculated range based on average statistics.
2024.10.23
New publications in CodeBase
- Swap Monitor This service periodically checks swaps for predefined symbols and saves detected changes into CSV-files for further analysis and potential replay (not implemented here). Also it monitors and alerts swap changes of existing positions.
- Candle Size The indicator searches for candles on the price chart that are larger than the size specified in the settings and marks them on the chart.
2024.10.23
There are more than
11,410 codes published in
Codebase
2024.10.22
Most downloaded source codes this month
- QuickTrend Scalper This Expert Advisor (EA) is designed for high-frequency trading on the 1-minute (M1) chart in both forex and crypto markets. It uses RSI and candlestick patterns to identify buy and sell signals, automatically executing trades with dynamic stop loss, take profit, and trailing stop levels based on market volatility.
- AdaptiveTrader Pro EA This Expert Advisor (EA) for MetaTrader leverages a combination of technical indicators, including RSI, ATR, and moving averages, to identify high-probability trading opportunities. Equipped with dynamic lot sizing, trailing stops, and performance-based adjustments, it is tailored to optimize trading decisions and manage risk effectively in volatile market conditions.
- 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.
2024.10.22
New publications in CodeBase
2024.10.20
Most downloaded source codes this week
2024.10.20
New publications in CodeBase
2024.10.15
Most downloaded source codes this month
- 2-Pair Correlation EA The 2-Pair Correlation EA is a free Expert Advisor that trades BTC/USD and ETH/USD, capitalizing on their price correlation. The EA opens trades when the pairs diverge and closes them as they realign, automating your trading with minimal effort.
- Swing High Low and Fibonacci Retracement Indicator This is an indicator that combines swing high/low and Fibonacci Retracement to identify potential buying zones.
- buysell+sl+tp script to open a buy position at the current price in the MT5 window with a specified stop loss (in pips) and take profit (in pips)
2024.10.15
New publications in CodeBase
- Script to extract Candlesticks data from all time frames to CSV. This MQL5 script exports candlestick data for various timeframes into a CSV file, capturing essential market information like open, high, low, and close prices. It analyzes each candlestick's characteristics, including body and wick sizes, while calculating additional metrics such as candle gaps. After processing the latest 21 bars, it notifies the user upon successful data export.
- Simplified "EuroSurge" Expert Advisor This expert opens trades based on signals from multiple technical indicators.