Find us on Facebook!
Join our fan page

Use new possibilities of MetaTrader 5

Latest Code Publications in CodeBase

Most downloaded source codes this month

Most downloaded source codes this week

  • Breakout Martin Gale Expert Advisor for MT5 This is an mql5 Expert Advisor trading the breakouts and using Martin Gale risk management.
  • Amazing Oscilator A combination of data analysis from the Awesome Oscillator and the resulting direction of the candles relative to the previous range
  • Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.

New publications in CodeBase

Most downloaded source codes this month

There are more than 11 190 codes published in Codebase

New publications in CodeBase

  • No Repaint Heiken Ashi The Heiken Ashi indicator with no repaint or repaint mode input option.
  • wd.Range_DailyAvg This indicator helps user estimate the potential price movement for the current day, based on 20 days historical data and market trends.

Most downloaded source codes this week

New publications in CodeBase

  • Multi_BreakEven.mt5 Multi_BreakEven is a script file that enables setting multiple entry positions to breakeven, either through pips or a target price, once the trade becomes favorable.
  • Multi_BreakEven.mt4 Multi_BreakEven is a script file that allows multiples entry positions to set to breakeven using pips or target price when the trade is in your favor.

New publications in CodeBase

  • Multi colored trend indicator MT5 This indicator uses two moving averages to calculate the market trend and changes color depending on the trend direction.
  • Amazing Oscilator A combination of data analysis from the Awesome Oscillator and the resulting direction of the candles relative to the previous range

Most downloaded source codes this month

New publications in CodeBase

Most downloaded source codes this week

New publications in CodeBase

Most downloaded source codes this month

  • Using Moving Averages with an EA (Sample Source Code) This time, we're providing a sample that enters based on the Golden Cross and Dead Cross of the moving averages. If you want to see a sample where a long entry is made when the closing price of the candlestick crosses above the moving average, please refer to this article.
  • Advisor Based on RSI and Martingale "This advisor uses the RSI indicator to determine optimal entry and exit points in the market. A unique feature of the advisor is its martingale strategy, which allows for position reversal with an increased lot size during market reversals. The advisor offers flexible trading time settings: you can set a working time range and disable trading during specific hours to filter out news events."
  • Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.

New publications in CodeBase

Most downloaded source codes this week

New publications in CodeBase

New publications in CodeBase

  • Smooth Algorithms - Corrected/Modified - library for MetaTrader 5 Smooth Algorithms fixed version plus Trade Algorithms plus full operational EA, plus two indicators . So you will get complete project where you be able to see example how to use and implement this libraries
  • M4HA Trend indicator based on the intersection of adaptive HMA and its smoothed line. I recommend using it together with the flat indicator to determine the beginning of a trend early

Most downloaded source codes this month

  • MaybeAwo EA a Versatile automated trading tool for the MetaTrader 4 platform. This EA is designed to assist traders in managing their positions effectively by offering features such as setting a breakeven point, trailing stop, stop loss, and take profit levels. It works with various input parameters, allowing you to customize its behavior to fit your trading strategy.
  • Ranged Grid Bot EA with pending orders The EA created sell/buy limit orders according to: - Grid number of orders - Trading range (computed automatically by uwing weekly highs and lows) - Current price
  • Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.

Most downloaded source codes this week

Most downloaded source codes this month

  • Ranged Grid Bot EA with pending orders The EA created sell/buy limit orders according to: - Grid number of orders - Trading range (computed automatically by uwing weekly highs and lows) - Current price
  • 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.

New publications in CodeBase

Most downloaded source codes this week

New publications in CodeBase

  • Price Rebound Calculator This indicator calculates the percentage of the probability of a price reversal from a given size of the maximum rollback based on the history of the chart movement
  • The Double Bollinger Band Strategy MT4 The Double Bollinger Band Strategy makes use of two Bollinger Bands in order to filter entries and exits in the forex market.

Most downloaded source codes this month

Most downloaded source codes this week

There are more than 11 170 codes published in Codebase

New publications in CodeBase

  • ATR Trailing Stop with 1 Buffer only This is an edit of the Mod_ATR_Trailing_Stop by MQL5 user @Scriptor found here https://www.mql5.com/en/code/20423 . MT5 indicator .mql5 and .ex5 files, report any bugs, I'll fix.
  • Trend Predictor New level of trend prediction!

Most downloaded source codes this month

  • Trend Dashboard Indicator Trend Dashboard Indicator MetaTrader 5 indicator — a multi-timeframe indicator that is based on three standard indicators: Stochastic oscillator, RSI (Relative Strength Index), and CCI (Commodity Channel Index). It displays current trend directions for M1, M5, M15, M30, H1, H4, D1, W1, and MN1 timeframes. When you follow such an indicator you have a clear picture of the trends across all important timeframes. It doesn't matter which timeframe you attach this indicator to. The indicator can be downloaded for MT4 and MT5.
  • KA-Gold Bot 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.
  • Support and Resistance indicator for MQL5 This is a custom support and resistance indicator, signaling bouncebacks and key market levels.

New publications in CodeBase

Most downloaded source codes this week

  • Using Moving Averages with an EA (Sample Source Code) This time, we're providing a sample that enters based on the Golden Cross and Dead Cross of the moving averages. If you want to see a sample where a long entry is made when the closing price of the candlestick crosses above the moving average, please refer to this article.
  • Advisor Based on RSI and Martingale "This advisor uses the RSI indicator to determine optimal entry and exit points in the market. A unique feature of the advisor is its martingale strategy, which allows for position reversal with an increased lot size during market reversals. The advisor offers flexible trading time settings: you can set a working time range and disable trading during specific hours to filter out news events."
  • Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.

New publications in CodeBase

New publications in CodeBase

New publications in CodeBase

  • Hull Moving Average Here is my implementation of a colored Hull Moving Average.
  • Wick Ratio Candlesticks Wick Ratio Candlesticks are recognized by its upper and lower wick ratio instead of open and close properties.

Most downloaded source codes this month

  • Trend Dashboard Indicator Trend Dashboard Indicator MetaTrader 5 indicator — a multi-timeframe indicator that is based on three standard indicators: Stochastic oscillator, RSI (Relative Strength Index), and CCI (Commodity Channel Index). It displays current trend directions for M1, M5, M15, M30, H1, H4, D1, W1, and MN1 timeframes. When you follow such an indicator you have a clear picture of the trends across all important timeframes. It doesn't matter which timeframe you attach this indicator to. The indicator can be downloaded for MT4 and MT5.
  • KA-Gold Bot 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.
  • Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.

Most downloaded source codes this week

  • MaybeAwo EA a Versatile automated trading tool for the MetaTrader 4 platform. This EA is designed to assist traders in managing their positions effectively by offering features such as setting a breakeven point, trailing stop, stop loss, and take profit levels. It works with various input parameters, allowing you to customize its behavior to fit your trading strategy.
  • Ranged Grid Bot EA with pending orders The EA created sell/buy limit orders according to: - Grid number of orders - Trading range (computed automatically by uwing weekly highs and lows) - Current price
  • Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.

New publications in CodeBase

  • Advisor Based on RSI and Martingale "This advisor uses the RSI indicator to determine optimal entry and exit points in the market. A unique feature of the advisor is its martingale strategy, which allows for position reversal with an increased lot size during market reversals. The advisor offers flexible trading time settings: you can set a working time range and disable trading during specific hours to filter out news events."
  • Using Moving Averages with an EA (Sample Source Code) This time, we're providing a sample that enters based on the Golden Cross and Dead Cross of the moving averages. If you want to see a sample where a long entry is made when the closing price of the candlestick crosses above the moving average, please refer to this article.

Most downloaded source codes this month

  • KA-Gold Bot 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.
  • Trend Dashboard Indicator Trend Dashboard Indicator MetaTrader 5 indicator — a multi-timeframe indicator that is based on three standard indicators: Stochastic oscillator, RSI (Relative Strength Index), and CCI (Commodity Channel Index). It displays current trend directions for M1, M5, M15, M30, H1, H4, D1, W1, and MN1 timeframes. When you follow such an indicator you have a clear picture of the trends across all important timeframes. It doesn't matter which timeframe you attach this indicator to. The indicator can be downloaded for MT4 and MT5.
  • Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.

New publications in CodeBase

Most downloaded source codes this week

  • Ranged Grid Bot EA with pending orders The EA created sell/buy limit orders according to: - Grid number of orders - Trading range (computed automatically by uwing weekly highs and lows) - Current price
  • 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.
There are more than 11 150 codes published in Codebase

New publications in CodeBase

  • Translating mouse click on chart into price value (Helper function) This is a helper function which enables you to find the price of the symbol (the prices on the Y-axis) wherever you click the mouse on the chart. Using OnChartEvent, we don't have an MQL5 function in the API to do this, we can only obtain X and Y pixel values with mouse click.
  • Drag and Drop Move TakeProfit Set TakeProfit by just dragging and dropping script on the desired price level.
  • Drag and Drop Move StopLoss Set StopLoss by just dragging and dropping script on the desired price level.
  • Momentum code for beginners by William210 Momentum beginner tutorial to learn how to code in MQL5
  • MaybeAwo EA a Versatile automated trading tool for the MetaTrader 4 platform. This EA is designed to assist traders in managing their positions effectively by offering features such as setting a breakeven point, trailing stop, stop loss, and take profit levels. It works with various input parameters, allowing you to customize its behavior to fit your trading strategy.

Most downloaded source codes this month

  • KA-Gold Bot 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.
  • Support and Resistance indicator for MQL5 This is a custom support and resistance indicator, signaling bouncebacks and key market levels.
  • Moving Average with alerts on price crossovers I wanted to build a moving average which would create an alert when the price moves over the line by a user defined amount of points. It creates both bullish and bearish signals depending on the direction of market price moving through the MA. It is designed for slow length moving averages (default is 200-day MA). EDIT: I now added a second version of the indicator which uses Arrow buffers instead of ObjectCreate.

New publications in CodeBase

New publications in CodeBase

Most downloaded source codes this week

New publications in CodeBase

New publications in CodeBase

Most downloaded source codes this month

  • KA-Gold Bot 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.
  • Support and Resistance indicator for MQL5 This is a custom support and resistance indicator, signaling bouncebacks and key market levels.
  • Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.

Most downloaded source codes this week

  • Trend Dashboard Indicator Trend Dashboard Indicator MetaTrader 5 indicator — a multi-timeframe indicator that is based on three standard indicators: Stochastic oscillator, RSI (Relative Strength Index), and CCI (Commodity Channel Index). It displays current trend directions for M1, M5, M15, M30, H1, H4, D1, W1, and MN1 timeframes. When you follow such an indicator you have a clear picture of the trends across all important timeframes. It doesn't matter which timeframe you attach this indicator to. The indicator can be downloaded for MT4 and MT5.
  • KA-Gold Bot 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.
  • Support and Resistance indicator for MQL5 This is a custom support and resistance indicator, signaling bouncebacks and key market levels.
12345678910...70