Find us on Facebook!
Join our fan page

Use new possibilities of MetaTrader 5

Latest Code Publications in CodeBase

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.
  • Donchian Channel Indicator This indicator draws three Donchian bands: up, middle and down bands based on which you can design your scalping system.

Most downloaded source codes this month

  • Ma Price Cross (Custom Time) Buys when price breaks above the MA and Sells when price breaks below the MA. User can choose the time range (server time) to trade in.
  • Strongest Pair Indicator This will return the pair with the most growth in the user input start time and end time
  • 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

  • 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.
  • b-clock Show minutes and seconds left before new candle is appeared.

Most downloaded source codes this month

  • 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.
  • Auto TP multiplied by SL Th Expert will set the TP based on the SL manually set using the input multiplier. Using this you can set 2,3,4 etc times the SL set.

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.
  • Ma Price Cross (Custom Time) Buys when price breaks above the MA and Sells when price breaks below the MA. User can choose the time range (server time) to trade in.

New publications in CodeBase

  • Check if there are any new bar The purpose is to check whether new bar are generated This is a class file that can be used as a class or copied to EA or scripts for use
  • Equity-based Position Closure Explore the implementation of equity-based position closure in your trading bot, where positions are closed automatically when the equity reaches a certain percentage threshold.

New publications in CodeBase

Most downloaded source codes this month

  • Money Management Close trades when the percentage profit or risk of the account is reached
  • AllAverages v4.9 One of the latest version of this indicator at the moment. Huge base of different modifications of moving averages, with multitimesframe function, sending signals to e-mail and push notifications.
  • Risk Manager EA This is a simple EA that will buy/sell pullbacks while managing your given risk parameters. You need to decide on a direction, and the EA will do the rest.

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.
  • Ma Price Cross (Custom Time) Buys when price breaks above the MA and Sells when price breaks below the MA. User can choose the time range (server time) to trade in.

Most downloaded source codes this month

  • Risk Manager EA This is a simple EA that will buy/sell pullbacks while managing your given risk parameters. You need to decide on a direction, and the EA will do the rest.
  • 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.

Most downloaded source codes this week

  • Ma Price Cross (Custom Time) Buys when price breaks above the MA and Sells when price breaks below the MA. User can choose the time range (server time) to trade in.
  • Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
  • Strongest Pair Indicator This will return the pair with the most growth in the user input start time and end time

Most downloaded source codes this month

Most downloaded source codes this week

  • Ma Price Cross (Custom Time) Buys when price breaks above the MA and Sells when price breaks below the MA. User can choose the time range (server time) to trade in.
  • Strongest Pair Indicator This will return the pair with the most growth in the user input start time and end time
  • 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 month

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.
  • Auto TP multiplied by SL Th Expert will set the TP based on the SL manually set using the input multiplier. Using this you can set 2,3,4 etc times the SL set.

New publications in CodeBase

  • Equity and Balance as an indicator for MT5 This is a very easy-to-use indicator that displays the changes in Equity and balance of the trading account as it dynamically moves. Particularly useful on the back tester and good for beginners to read this very easy MQL5 code.
  • Dynamic Trailing Stop Loss and Profit Target Management This code snippet implements a dynamic risk management strategy for existing trades. It focuses on closing trades based on profit or loss thresholds and employs a trailing stop loss to lock in profits as the trade moves favorably. The strategy helps manage risk and enhance profitability in a streamlined manner.
  • Ma Price Cross (Custom Time) Buys when price breaks above the MA and Sells when price breaks below the MA. User can choose the time range (server time) to trade in.
  • Strongest Pair Indicator This will return the pair with the most growth in the user input start time and end time
There are more than 11 100 codes published in Codebase

New publications in CodeBase

  • Expert Advisor for Opening Multiple Buy and Sell Orders Based on User Input This MT5 Expert Advisor opens multiple buy and sell orders based on user input, featuring a simple interface with Buy and Sell buttons. The EA calculates lot size, checks the spread against slippage, and places orders accordingly. It is essential to test this EA in a demo account before using it in live trading.
  • VPS Trailing Stop Service VPS Trailing Stop Service
  • CheckTrades This code initializes the necessary objects and input parameters, and defines a CheckTrades() function that calculates the risk and profit amounts based on the account balance and user input. It then iterates through open orders and checks if the current profit or loss meets the user-defined thresholds, and closes the position if necessary

Most downloaded source codes this month

New publications in CodeBase

  • Risk Calculator Calculates the risk in the account currency for a given trading volume of the selected symbol at different time periods.
  • Multi SellLimitOrders & Multi SellStopOrders Multi Selllimit and Sellstop orders are script files that enable traders to place multiple orders with ease. These orders allow traders to enter the market at a specific price level, or at a specified number of pips away from the current market price, with stop-loss and take-profit levels. By default, the pips value is set to 400, which means the trade will be placed 400 pips away from the current market price for a 5-digit broker. Moreover, the multi Selllimit and Sellstop orders offer traders the flexibility to customize their trading strategies. Traders can set the stop-loss level to zero if they do not use stop-loss, and can choose between a target price or a pip-based entry. This level of flexibility allows traders to tailor their trading strategies to their specific needs, which can result in better trading outcomes.
  • Multi_BuyLimitOrders & Multi_BuyStopOrders Multi buylimit and buystop orders are script files that enable traders to place multiple orders with ease. With just one command, traders can place multiple buylimit or buystop orders using either a target price or pips. By default, the pips value is set to 400, which means the trade will be placed 400 pips away from the current market price for a 5-digit broker. This setup includes stop-loss and take-profit levels, which can be adjusted based on the trader's preferences. Notably, these orders come with a level of flexibility that enables traders to fine-tune their trading strategies. For instance, a trader can opt to set the stop-loss level to zero if they do not use stop-loss.
  • Multi SellOrders To assist traders who wish to open multiple sell orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Sell is the number of trades to execute. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple sell orders, it can save traders valuable time and allow them to focus on other aspects of their trading
  • Multi BuyOrders To assist traders who wish to open multiple buy orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Buy is the number trades the trader wish to open instantly. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple buy orders, it can save traders valuable time and allow them to focus on other aspects of their trading strategy.
  • Multi SellLimitOrders & Multi SellStopOrders Multi Selllimit and Sellstop orders are script files that enable traders to place multiple orders with ease. These orders allow traders to enter the market at a specific price level, or at a specified number of pips away from the current market price, with stop-loss and take-profit levels. By default, the pips value is set to 400, which means the trade will be placed 400 pips away from the current market price for a 5-digit broker. Moreover, the multi Selllimit and Sellstop orders offer traders the flexibility to customize their trading strategies. Traders can set the stop-loss level to zero if they do not use stop-loss, and can choose between a target price or a pip-based entry. This level of flexibility allows traders to tailor their trading strategies to their specific needs, which can result in better trading outcomes.
  • Multi_BuyLimitOrders & Multi_BuyStopOrders Multi buylimit and buystop orders are script files that enable traders to place multiple orders with ease. With just one command, traders can place multiple buylimit or buystop orders using either a target price or pips. By default, the pips value is set to 400, which means the trade will be placed 400 pips away from the current market price for a 5-digit broker. This setup includes stop-loss and take-profit levels, which can be adjusted based on the trader's preferences. Notably, these orders come with a level of flexibility that enables traders to fine-tune their trading strategies. For instance, a trader can opt to set the stop-loss level to zero if they do not use stop-loss.
  • Multi SellOrders To assist traders who wish to open multiple sell orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Sell is the number of trades to execute. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple sell orders, it can save traders valuable time and allow them to focus on other aspects of their trading strategy.
  • Multi BuyOrders To assist traders who wish to open multiple buy orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Buy is the number trades the trader wish to open instantly. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple buy orders, it can save traders valuable time and allow them to focus on other aspects of their trading strategy.

Most downloaded source codes this week

  • Money Management Close trades when the percentage profit or risk of the account is reached
  • AllAverages v4.9 One of the latest version of this indicator at the moment. Huge base of different modifications of moving averages, with multitimesframe function, sending signals to e-mail and push notifications.
  • Risk Manager EA This is a simple EA that will buy/sell pullbacks while managing your given risk parameters. You need to decide on a direction, and the EA will do the rest.

New publications in CodeBase

  • ChartButton Class MT5 This class allows you to create buttons on the chart as if they were chart objects(have time and price coordinates) these objects can be dragged on the chart and when scrolling they stay at the same place. If you wan't to learn some Object Oriented Programming or if you wan't to understand how chartevents work or you wan't to create graphical interfaces, you can learn a lot from this.
  • ChartButton Class MT4 This class allows you to create buttons on the chart as if they were chart objects(have time and price coordinates) these objects can be dragged on the chart and when scrolling they stay at the same place. If you wan't to learn some Object Oriented Programming or if you wan't to understand how chartevents work or you wan't to create graphical interfaces, you can learn a lot from this.

New publications in CodeBase

  • Volume Average Groups For Comparison Learn how to split the volume data into different groups so that you can compare them and create a strategy based on volume average.
  • Auto TP multiplied by SL Th Expert will set the TP based on the SL manually set using the input multiplier. Using this you can set 2,3,4 etc times the SL set.

New publications in CodeBase

  • Ofir Blue Telegram API for any indicator Connect your indicator to Telegram with 3 lines of code This sample code enables to connect your indicator to Ofir Blue, the first trading application for Telegram
  • Change TPSL By Percentage The Expert will help you change the TP/SL of all open orders by setting the TP/SL based on the input percentage value.

Most downloaded source codes this month

New publications in CodeBase

  • Benchmark A set of macros to benchmark small code snippets for their execution speeds.
  • Money Management Close trades when the percentage profit or risk of the account is reached

Most downloaded source codes this week

  • Risk Manager EA This is a simple EA that will buy/sell pullbacks while managing your given risk parameters. You need to decide on a direction, and the EA will do the rest.
  • 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.
There are more than 11 080 codes published in Codebase

New publications in CodeBase

  • Tick Speed Indicator This example was created to see how long it takes to reach 100 ticks. So this indicator is a seconds / "centick" (centick = 100 ticks). It helps you trade orders flow.
  • Subtract Time You learn how to subtract time, insert it manually in a string format, tick counter and see output on comment function.
  • Exponential Commodity Channel Index Commodity Channel Index using exponential moving averages.
  • AllAverages v4.9 One of the latest version of this indicator at the moment. Huge base of different modifications of moving averages, with multitimesframe function, sending signals to e-mail and push notifications.

New publications in CodeBase

New publications in CodeBase

  • MoveStoploss MoveStoploss moves the stoploss as the trade move in your direction at a specific distance. Version 1.1 has automatic trail error fixed.
  • Password Manager Generates, creates and stores passwords for your account.
  • MoveStopLoss Move the stoploss as the trade moves in your direction at a specific distance.

Most downloaded source codes this month

Most downloaded source codes this week

New publications in CodeBase

  • Pending Order count-BUY STOPS This script counts the number of pending buy stop orders for each symbol and returns the value.
  • Simple license on account name Below you can find a super simple method to create a license based on MT4 account name. Place in your init function: CheckLicense(); The stringLower method makes sure the account name is in lowercase. Then you can check this value with the account name you want to check.
  • Risk Manager EA This is a simple EA that will buy/sell pullbacks while managing your given risk parameters. You need to decide on a direction, and the EA will do the rest.

New publications in CodeBase

Most downloaded source codes this month

Most downloaded source codes this week

New publications in CodeBase

  • send a trade position to telegram channel hi, this code need your telegram token and telegram chat id . you can make robot by BotFather and then search in google how you can find telegram token and chat id then attach them to this code . now every trade would be signals on your telegram channel.
  • Elder Impulse System Candlestick This indicator paints the candlestick chart color according to the Elder Impulse System

New publications in CodeBase

Most downloaded source codes this month

Most downloaded source codes this week

New publications in CodeBase

New publications in CodeBase

  • Refresh All Open Charts This Script will Refresh All Open Charts in MT5, Usually custom symbols in MT5 needs to be Refresh sometime so this script will help to refresh all open chart at once. We can also use this Script anywhere where we need to refresh all open charts.
  • oneminuteman Find what are the highs and the lows that happened the last 60000 ms

Most downloaded source codes this month

Most downloaded source codes this week

There are more than 11 060 codes published in Codebase

New publications in CodeBase

  • Pivot Pivots based on Bar Prediction.
  • Aussie Surfer This expert advisor is based on the alligator indicator and bollinger bands indicator. Currency pair: GBPAUD Time frame: 15min

Most downloaded source codes this month

Most downloaded source codes this week

New publications in CodeBase

  • Reversal Strategy Reversal strategy using Moving Average, Standard Deviation and RSI
  • Painel simples e objetivo US: This is a very simple code regarding an information panel. It doesn't use external files or anything like that! simply copy and paste it into your code the way the code was written. The dashboard displays; Active asset price Your position(Bought or sold) Maximum and minimum price of the asset Username open profit Balance PT-Br:Esse é um codigo bem simples a respeito de um painel de informações. Não utiliza arquivos externos ou algo do tipo! simplesmente, copie e cole no seu codigo da forma que o codigo foi escrito. O painel exibe; Ativo Preço do ativos Sua posição(Comprada ou vendida) Preço max e minimo do ativo Nome do usuario Lucro em aberto Saldo
123456789101112...70