2024.06.25
There are more than 11,340 codes published in Codebase
2024.06.23
Most downloaded source codes this week
- 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.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
2024.06.22
New publications in CodeBase
- Tick RSI Adaptive RSI adaptive indicator based on tick calculations
- MovingAverages.mqh Part II MovingAverages.mqh Part II A multi timeframe version is available with colors for orientation, for developers or profitable traders for free. Offer under conditions. Other multi timeframe indicators are also available.
2024.06.21
New publications in CodeBase
- Root Mean Square Root Mean Square
- Easy to use Hedging Class This EA is a demonstration of how you can implement your own Hedging strategy with the help of the include file.
2024.06.18
Most downloaded source codes this month
- 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.
- Breakout Strategy with Prop Firm Helper Functions This is an update of the "Simple Yet Effective Breakout Strategy". In this code, I have added some helper functions for prop firm challenges.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
2024.06.18
New publications in CodeBase
- Easy to use Hedging Class for MQL5 by Peter Mueller This EA is a demonstration of how you can implement your own Hedging strategy with the help of the include file.
- Screenshots with keyboard key press Capture widescreen screenshots by pressing the 's' hotkey on the keyboard
2024.06.16
Most downloaded source codes this week
- 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.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
2024.06.11
Most downloaded source codes this month
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- Breakout Strategy with Prop Firm Helper Functions This is an update of the "Simple Yet Effective Breakout Strategy". In this code, I have added some helper functions for prop firm challenges.
- 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.
2024.06.10
New publications in CodeBase
- MovingAverages.mqh Part I MovingAverages.mqh Part I A multi timeframe version is available with colors for orientation, for developers or profitable traders for free. Offer under conditions. Other multi timeframe indicators are also available.
- Beginner Programming: Moving Average Crossover with and without Martingale functionality Moving averages are useless. In fact, some argue that the best way to lose money for a beginner are MA-Price crossover strategies. But is it possible to make it work?
- Delete all objects on chart (main window and sub window) with drag and drop It will delete all objects on the chart when the compiled executable is dragged onto the chart
2024.06.09
Most downloaded source codes this week
- 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.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
2024.06.04
Most downloaded source codes this month
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
- Harmonic AI Pattern HarmonicEA is an Expert Advisor (EA) developed for MetaTrader 4 (MT4) that utilizes harmonic pattern recognition and RSI-based signals to identify potential trading opportunities in the forex market. The EA is designed to detect various bullish and bearish harmonic patterns, including crab, butterfly, bat, deep bat, AB=CD, 3-drive, 5-drive, and shark patterns, across multiple timeframes. It incorporates risk management features such as dynamic lot sizing based on a percentage of account balance, maximum drawdown control, and a trailing stop mechanism to protect profits. HarmonicEA is suitable for traders seeking an automated solution to capitalize on harmonic patterns while managing risk effectively.
2024.06.02
Most downloaded source codes this week
- 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.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- Breakout Strategy with Prop Firm Helper Functions This is an update of the "Simple Yet Effective Breakout Strategy". In this code, I have added some helper functions for prop firm challenges.
2024.05.28
Most downloaded source codes this month
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
- SuperTrend SuperTrend indicator.
2024.05.26
Most downloaded source codes this week
- 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.
- Breakout Strategy with Prop Firm Helper Functions This is an update of the "Simple Yet Effective Breakout Strategy". In this code, I have added some helper functions for prop firm challenges.
- Trap News MT5 Script For Trap News High Impact
2024.05.21
Most downloaded source codes this month
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
- SuperTrend SuperTrend indicator.
2024.05.20
New publications in CodeBase
- Trap News MT5 Script For Trap News High Impact
- 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.
2024.05.19
Most downloaded source codes this week
- Breakout Strategy with Prop Firm Helper Functions This is an update of the "Simple Yet Effective Breakout Strategy". In this code, I have added some helper functions for prop firm challenges.
- Harmonic AI Pattern HarmonicEA is an Expert Advisor (EA) developed for MetaTrader 4 (MT4) that utilizes harmonic pattern recognition and RSI-based signals to identify potential trading opportunities in the forex market. The EA is designed to detect various bullish and bearish harmonic patterns, including crab, butterfly, bat, deep bat, AB=CD, 3-drive, 5-drive, and shark patterns, across multiple timeframes. It incorporates risk management features such as dynamic lot sizing based on a percentage of account balance, maximum drawdown control, and a trailing stop mechanism to protect profits. HarmonicEA is suitable for traders seeking an automated solution to capitalize on harmonic patterns while managing risk effectively.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
2024.05.14
Most downloaded source codes this month
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
- SuperTrend SuperTrend indicator.
2024.05.12
Most downloaded source codes this week
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- Harmonic AI Pattern HarmonicEA is an Expert Advisor (EA) developed for MetaTrader 4 (MT4) that utilizes harmonic pattern recognition and RSI-based signals to identify potential trading opportunities in the forex market. The EA is designed to detect various bullish and bearish harmonic patterns, including crab, butterfly, bat, deep bat, AB=CD, 3-drive, 5-drive, and shark patterns, across multiple timeframes. It incorporates risk management features such as dynamic lot sizing based on a percentage of account balance, maximum drawdown control, and a trailing stop mechanism to protect profits. HarmonicEA is suitable for traders seeking an automated solution to capitalize on harmonic patterns while managing risk effectively.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
2024.05.11
New publications in CodeBase
- Basic Library to Create Volume Profiles Basic library to create Volume Profiles on chart.
- Breakout Strategy with Prop Firm Helper Functions This is an update of the "Simple Yet Effective Breakout Strategy". In this code, I have added some helper functions for prop firm challenges.
- Click on the market chart to create a price alert This is a first for MetaTrader 5. Now you can click on the chart to create price alerts.
2024.05.09
New publications in CodeBase
- Count consecutive no. of bull or bear bars Sample code to count consecutive no. of bull or bear bars.
- Harmonic AI Pattern HarmonicEA is an Expert Advisor (EA) developed for MetaTrader 4 (MT4) that utilizes harmonic pattern recognition and RSI-based signals to identify potential trading opportunities in the forex market. The EA is designed to detect various bullish and bearish harmonic patterns, including crab, butterfly, bat, deep bat, AB=CD, 3-drive, 5-drive, and shark patterns, across multiple timeframes. It incorporates risk management features such as dynamic lot sizing based on a percentage of account balance, maximum drawdown control, and a trailing stop mechanism to protect profits. HarmonicEA is suitable for traders seeking an automated solution to capitalize on harmonic patterns while managing risk effectively.
2024.05.07
Most downloaded source codes this month
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
- SuperTrend SuperTrend indicator.
2024.05.05
Most downloaded source codes this week
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- Geometric Moving Average MQL5 version of geometric moving average.
- 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.05.05
New publications in CodeBase
- Get Nth Closed Trade from the end in MT5 This EA will scan all the closed trades and then print the nth trade from the end
- Get Nth Active Trade from the end in MT5 This EA will scan all the open trades and then print the nth trade from the end
- Get Nth Closed Trade from the end in MT4 This EA will scan all the closed trades and then print the nth trade from the end
- Get Nth Active Trade from the end in MT4 This EA will scan all the open trades and then print the nth trade from the end
2024.05.04
New publications in CodeBase
- Check trading day end is reached This script will detect an end-of-trading day and notify
- Close biggest winning / losing trade in MT4 This script will scan all the open trades and then will close the biggest winning/losing trade
- Place Hedge Order of unbalanced positions in MT4 This script will place hedge trade of unbalanced type in MT4.
- Close or delete orders based on type in MT4 This script will close all active trades and delete pending orders based on the order type passed on the input.
- Sequentially Close all trades in MT4 This script will close all active trades sequentially. following the order in which they were opened
- Total Active / Closed orders by order type in MT4 This script will calculate the total active and closed orders based on order types
- Find the current winning / losing streak in MT4 Find the current winning / losing streak in MT4 based on filters
2024.05.03
New publications in CodeBase
- CCI with dynamic channels a very convenient way to filter out unnecessary signals of crossing levels
- Adaptive SMA improved version of the standard Simple moving average indicator with a lower delay based on: https://www.mql5.com/en/code/30844 (author: https://www.mql5.com/en/users/mladen)
2024.05.01
New publications in CodeBase
- RSI with channels standart RSI with dynamic levels
- MQL4 Implementation of onTrade Event Handler This is a simple code to mimic onTradeTransaction Event handler defined in MQL5
2024.04.30
Most downloaded source codes this month
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- 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.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
2024.04.28
Most downloaded source codes this week
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- A BETTER RSI Relative Strength Index that completely removes noise, works on all markets!
2024.04.28
New publications in CodeBase
- Geometric Moving Average MQL5 version of geometric moving average.
- Custom Bollinger Bands Standard Bollinger Bands indicator with averaging features added
2024.04.23
Most downloaded source codes this month
- 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.
- Slope Entry Points Indicator based on basic slope moving average and cloud around. Indicator shows two types of signals: prepearing - dot and entry - arrow.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
2024.04.23
New publications in CodeBase
- Manual Backtest Bar Replay Simulator A simple indicator which may help you in manual backtest by just moving a vertical line to show hide bars.
- A BETTER RSI Relative Strength Index that completely removes noise, works on all markets!
2024.04.21
Most downloaded source codes this week
- Simple Yet Effective Breakout Strategy A simple yet effective donchian channel breakout strategy. This strategy is timeless!
- 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.04.21
New publications in CodeBase
- Check Last Closed Trade (Profit / Type / Symbol etc.) Select the last closed deal (trade) to further work.
- Trailing with Close by Button and Profit This EA help you for Auto set the TP & SL by default parameter, Auto trailing stop & step for any order that you place from any device, Easy way to close all orders with 5 Button "Close All", "Close Profit", "Close Lose", "Close BUY", "Close SELL", Auto close all orders by profit or lose treshold value
2024.04.19
New publications in CodeBase
- Confluence Detector It will detect whether there's confluence between the current chart timeframe and two other timeframes.
- QuickTradeKeys123 QuickTradeKeys 123 is a user-friendly Expert Advisor (EA) for MetaTrader 5, enabling traders to execute buy and sell operations quickly by simply pressing the numbers '1' and '2' on their keyboard. Pressing '3' closes all open positions. This EA is ideal for swift trading and testing purposes where manual intervention is required without using the mouse.
- Classic and Virtual Trailing Classic & Virtual Trailing for MT4
2024.04.17
New publications in CodeBase
- Simple Yet Effective Breakout Strategy A simple yet effective donchian channel breakout strategy. This strategy is timeless!
- Code blocks for "Counters" like Count "X" time and pass Here are some examples of codes for set counters based on "Count"
2024.04.16
Most downloaded source codes this month
- 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.
- Slope Entry Points Indicator based on basic slope moving average and cloud around. Indicator shows two types of signals: prepearing - dot and entry - arrow.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
2024.04.14
Most downloaded source codes this week
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- 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
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
2024.04.12
New publications in CodeBase
- Basic GridManager Library This is a basic library to create and manage grids.
- A Code block to detect A "New Candle/Bar" using bars history (very effective way) If you only want to execute your code blocks "only once per bar" it's important to check if there is new bar arrived or not.
2024.04.10
New publications in CodeBase
- Candle Analysis Report This script helps traders understand the distribution and range of candles in a specific period, which can be useful for making trading decisions such as determining which historical values to use for Take Profit or Stop Loss.
- Virtual SL TP Pending with SL Trailing for Symbol Chart Virtual SL TP Pending with SL Trailing for Symbol Chart
- Close Basket Pairs v1 This MQL4 EA is designed to close positions for a basket of currency pairs based on certain profit and loss thresholds.
2024.04.09
Most downloaded source codes this month
- 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.
- Buy Sell Close Manual trading EA for trading newbies [@Buy_Sell_Close] Manual trading EA for trading newbies, EA can be used in backtesting visual mode, EA can also be used in live trading. You can practice your own trading system in backtesting.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
2024.04.09
New publications in CodeBase
- Counter Attack Candlestick Counter attack candlestick pattern
- Dominant Candle Dominant Candle is a a two candlestick set where the wicks intersect each other but body of the candles are either gapped up, gapped down or equal
- Reverse Trades For All Symbols Script Reverses all open trades after Closure for all symbols .
- Trailing_StopLoss_for All_orders_and_symbols Trailing_StopLoss_for All_orders_and_symbols
- Simple continuous trend-following strategy for buying and selling based on predefined conditions Simple continuous trend-following strategy for buying and selling based on predefined conditions
2024.04.07
Most downloaded source codes this week
- iForexSessions Highlights the Forex Market Sessions (Sydney, Tokyo, London, New York).
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
2024.04.04
New publications in CodeBase
- Code Block for "Trailing Stop" based on current market price. (Ask / Bid) This code block loops through all opened position and do trailing based on Ask and Bid prices.
- Simple Code for Detect A "New Bar or New Candle " Received This code block detects a New Bar or a New Candle when it has received.
- Logarithmic Moving Average Logarithmic Moving Average continuously calculates the logarithmic mean of highest price and lowest price within a period.
- Harmonic Moving Average MQL5 version of harmonic moving average
- Calculate pip difference over the last N bars Bars Pips for Chart Symbol and Period selected
2024.04.02
Most downloaded source codes this month
- Buy Sell Close Manual trading EA for trading newbies [@Buy_Sell_Close] Manual trading EA for trading newbies, EA can be used in backtesting visual mode, EA can also be used in live trading. You can practice your own trading system in backtesting.
- 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.
- 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
2024.04.02
New publications in CodeBase
- Harmonized Pending Hedge of open trades for chart symbol Hedge Symbol 100%
- Resize chart window from indicator (for Short Trend Reversal) Changing the size of the chart window is important in my EA, but it may serve as inspiration for others.
- Open Charts of open trades symbols Open Charts
2024.03.31
Most downloaded source codes this week
- iForexSessions Highlights the Forex Market Sessions (Sydney, Tokyo, London, New York).
- Slope Entry Points Indicator based on basic slope moving average and cloud around. Indicator shows two types of signals: prepearing - dot and entry - arrow.
- 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.03.31
New publications in CodeBase
- Symbol Spread Equity Profit Banner V1.mq4 Simple banner showing Symbol Spread Equity Profit Banner
- Global Close Orders Management Orders Closure