Published article "Creating an EA that works automatically (Part 03): New functions".
![Creating an EA that works automatically (Part 03): New functions](https://c.mql5.com/2/50/aprendendo_construindo_003_avatar.png)
Today we'll see how to create an Expert Advisor that simply and safely works in automatic mode. In the previous article, we started to develop an order system that we will use in our automated EA. However, we have created only one of the necessary functions.
Published article "Population optimization algorithms: Bat algorithm (BA)".
![Population optimization algorithms: Bat algorithm (BA)](https://c.mql5.com/2/51/Bat-algorithm-avatar.png)
In this article, I will consider the Bat Algorithm (BA), which shows good convergence on smooth functions.
The most downloaded free products:
Bestsellers in the Market:
The most popular forum topics:
- Machine learning in trading: theory, models, practice and algo-trading 33 new comments
- Serious bug in the OrderCalcProfit() function 30 new comments
- SYMBOL_TRADE_TICK_VALUE_LOSS vs SYMBOL_TRADE_TICK_VALUE_PROFIT 27 new comments
Most read articles this month
![MetaTrader 5 on Linux](https://c.mql5.com/2/0/linux5.png)
In this article, we demonstrate an easy way to install MetaTrader 5 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers.
![How to purchase a trading robot from the MetaTrader Market and to install it?](https://c.mql5.com/2/0/MQL5_market__1.png)
How to purchase a trading robot from the MetaTrader Market and to install it?
A product from the MetaTrader Market can be purchased on the MQL5.com website or straight from the MetaTrader 4 and MetaTrader 5 trading platforms. Choose a desired product that suits your trading style, pay for it using your preferred payment method, and activate the product.
![How to Test a Trading Robot Before Buying](https://c.mql5.com/2/0/avatar_test_mql5_market.png)
How to Test a Trading Robot Before Buying
Buying a trading robot on MQL5 Market has a distinct benefit over all other similar options - an automated system offered can be thoroughly tested directly in the MetaTrader 5 terminal. Before buying, an Expert Advisor can and should be carefully run in all unfavorable modes in the built-in Strategy Tester to get a complete grasp of the system.
Most downloaded source codes this month
- CCI + MACD Scalper Strategy that uses the CCI indicator 0-line cross to spot trades and the MACD indicator to confirm them.
- XP Forex Trade Manager MT4 Forex Trade Manager MT4 simplifies managing open orders in MetaTrader 4.
- Candle Time End and Spread The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.
2 new signals now available for subscription:
Bestsellers in the Market:
The most downloaded free products:
Published article "Creating an EA that works automatically (Part 02): Getting started with the code".
![Creating an EA that works automatically (Part 02): Getting started with the code](https://c.mql5.com/2/50/Aprendendo-a-construindo_part_II_avatar.png)
Today we'll see how to create an Expert Advisor that simply and safely works in automatic mode. In the previous article, we discussed the first steps that anyone needs to understand before proceeding to creating an Expert Advisor that trades automatically. We considered the concepts and the structure.
3 new signals now available for subscription:
Bestsellers in the Market:
Most read articles this week
![MetaTrader 5 on Linux](https://c.mql5.com/2/0/linux5.png)
In this article, we demonstrate an easy way to install MetaTrader 5 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers.
![How to purchase a trading robot from the MetaTrader Market and to install it?](https://c.mql5.com/2/0/MQL5_market__1.png)
How to purchase a trading robot from the MetaTrader Market and to install it?
A product from the MetaTrader Market can be purchased on the MQL5.com website or straight from the MetaTrader 4 and MetaTrader 5 trading platforms. Choose a desired product that suits your trading style, pay for it using your preferred payment method, and activate the product.
![Creating an EA that works automatically (Part 01): Concepts and structures](https://c.mql5.com/2/49/Aprendendo-a-construindo.png)
Creating an EA that works automatically (Part 01): Concepts and structures
Today we'll see how to create an Expert Advisor that simply and safely works in automatic mode.
Most downloaded source codes this week
- Support and Resistance Indicator This Indicator shows the potential breakout/stop levels.
- GridTrading Algorithm at volatile market This EA can do Grid trading and has useful functions for Gridtrading included
- Trade Sessions Indicator This indicator is based on DRAW_FILLING buffers. The input parameters are absent, the TimeTradeServer(), TimeGMT() functions are used.
The most downloaded free products:
Bestsellers in the Market:
The most popular forum topics:
- AI 2023. Meet ChatGPT. 25 new comments
- OrderSend() slippage parameter, in points or in pips? 22 new comments
- Machine learning in trading: theory, models, practice and algo-trading 18 new comments
Bestsellers in the Market:
3 new signals now available for subscription:
Bestsellers in the Market:
The most downloaded free products:
The most popular forum topics:
- AI 2023. Meet ChatGPT. 90 new comments
- Only Sell EA executing both BUY and SELL positions. PLEASE HELP!!! 9 new comments
- Questions from Beginners MQL5 MT5 MetaTrader 5 9 new comments
New publications in CodeBase
- Current Relative Drawdown The DD_Relative function calculates the drawdown (relative loss) of the current trading account in percentage. To do this, it uses the Current_LossOrProfit() function to get the current profit or loss for all open positions and divides it by the current account balance. The result is rounded to two decimal places and displayed in the chart comment. The Current_LossOrProfit() function loops through all open positions in the account and adds the commission, swap, and current profit or loss for each position. The result is rounded to two decimal places and returned as the current profit or loss of all open positions.
- Hurst Exponent - optimized version Hurst Exponent - optimized version
Bestsellers in the Market:
Published article "Creating an EA that works automatically (Part 01): Concepts and structures".
![Creating an EA that works automatically (Part 01): Concepts and structures](https://c.mql5.com/2/49/Aprendendo-a-construindo.png)
Today we'll see how to create an Expert Advisor that simply and safely works in automatic mode.
Published article "How to choose an Expert Advisor: Twenty strong criteria to reject a trading bot".
![How to choose an Expert Advisor: Twenty strong criteria to reject a trading bot](https://c.mql5.com/2/0/Avatar_Twenty_strong_criteria_to_reject_a_trading_bot.png)
This article tries to answer the question: how can we choose the right expert advisors? Which are the best for our portfolio, and how can we filter the large trading bots list available on the market? This article will present twenty clear and strong criteria to reject an expert advisor. Each criterion will be presented and well explained to help you make a more sustained decision and build a more profitable expert advisor collection for your profits.
Published article "DoEasy. Controls (Part 31): Scrolling the contents of the ScrollBar control".
![DoEasy. Controls (Part 31): Scrolling the contents of the ScrollBar control](https://c.mql5.com/2/51/MQL5-avatar-doeasy-library-2.png)
In this article, I will implement the functionality of scrolling the contents of the container using the buttons of the horizontal scrollbar.
New publications in CodeBase
- Check the time periods used The function takes two arrays of integers as parameters: "allowedPeriods" and "periodsToCheck". "allowedPeriods" is an array containing all the time periods allowed by the system, while "periodsToCheck" is an array containing the time periods used by the user in the indicator. The function iterates through the elements of the "periodsToCheck" array and checks if each of them is present in the "allowedPeriods" array. If it finds any time period that is not allowed, the function returns "false". If all time periods are allowed, the function returns "true". In short, this function is used to make sure that the time periods used in an indicator are valid and allowed by the system.
- CLS (ClearScreen) CLS (ClearScreen) delets all object drawn on the chart with key press "C"
The most downloaded free products:
Bestsellers in the Market:
Most read articles this month
![How to purchase a trading robot from the MetaTrader Market and to install it?](https://c.mql5.com/2/0/MQL5_market__1.png)
How to purchase a trading robot from the MetaTrader Market and to install it?
A product from the MetaTrader Market can be purchased on the MQL5.com website or straight from the MetaTrader 4 and MetaTrader 5 trading platforms. Choose a desired product that suits your trading style, pay for it using your preferred payment method, and activate the product.
![MetaTrader 5 on Linux](https://c.mql5.com/2/0/linux5.png)
In this article, we demonstrate an easy way to install MetaTrader 5 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers.
![How to Test a Trading Robot Before Buying](https://c.mql5.com/2/0/avatar_test_mql5_market.png)
How to Test a Trading Robot Before Buying
Buying a trading robot on MQL5 Market has a distinct benefit over all other similar options - an automated system offered can be thoroughly tested directly in the MetaTrader 5 terminal. Before buying, an Expert Advisor can and should be carefully run in all unfavorable modes in the built-in Strategy Tester to get a complete grasp of the system.
Most downloaded source codes this month
- XP Forex Trade Manager MT5 Forex Trade Manager MT5 simplifies managing open orders in MetaTrader 5.
- XP Forex Trade Manager MT4 Forex Trade Manager MT4 simplifies managing open orders in MetaTrader 4.
- Auto Fibonacci Indicator (Auto Fibos) - indicator for MetaTrader 4
The most popular forum topics:
- AI 2023. Meet ChatGPT. 46 new comments
- Is there a pattern to the chaos? Let's try to find it! Machine learning on the example of a specific sample. 20 new comments
- Questions from Beginners MQL5 MT5 MetaTrader 5 19 new comments