Sergey Golubev / Profile
Is it allowed to trade this symbol on Monday? Is there enough money to open position? How big is the loss if Stop Loss triggers? How to limit the number of pending orders? Was the trade operation executed at the current bar or at the previous one? If a trade robot cannot perform this kind of verifications, then any trade strategy can turn into a losing one. This article shows the examples of verifications that are useful in any Expert Advisor.
When writing an indicator that uses the short form of the OnCalculate() function call, you might miss the fact that an indicator can be calculated not only by price data, but also by data of some other indicator (no matter whether it is a built-in or custom one). Do you want to improve an indicator for its correct application to the other indicator's data? In this article we'll review all the steps required for such modification.
What is an indicator? It is a set of calculated values that we want to be displayed on the screen in a convenient way. Sets of values are represented in programs as arrays. Thus, creation of an indicator means writing an algorithm that handles some arrays (price arrays) and records results of handling to other arrays (indicator values). By describing creation of True Strength Index, the author shows how to write indicators in MQL5.
This article covers general principles of development of graphical controls. We are going to prepare tools for a quick and convenient work with graphical objects, analyze an example of creation of a simple control for entering text or numeric data as well as the ways of using it.

Apple AAPL +0.83% (AAPL), Bank of America BAC -0.95% (BAC), Coca-Cola KO +0.45% (KO), CVS Caremark (CVS), Facebook (FB), Ford (F), Home Depot (HD), McDonald’s (MCD), Pfizer (PFE), TJX Cos. (TJX), United Health Group (UNH), and Walt Disney (DIS).
Monday, December 23
The U.S. is to produce government data on personal spending and expenditure, while the University of Michigan is to release revised data on consumer sentiment and inflation expectations.
Tuesday, December 24
The U.K. is to release industry data on mortgage approvals, an important indicator of demand in the housing market.
The U.S. is to release data on durable goods orders, a leading indicator of production, as well as a report on new home sales.
Wednesday, December 25
Markets in the U.K. and the U.S. will remain closed for the Christmas Day holiday.
Thursday, December 26
Markets in the U.K. will remain closed in observance of Boxing Day.
Meanwhile, the U.S. is to release weekly data on initial jobless claims.
Friday, December 27
The U.S. is to round up the week with a report on crude oil supplies.
Monday, December 23
The U.S. is to produce government data on personal spending and expenditure, while the University of Michigan is to release revised data on consumer sentiment and inflation expectations.
Tuesday, December 24
The U.S. is to release data on durable goods orders, a leading indicator of production, as well as a report on new home sales.
Wednesday, December 25
Markets in New Zealand and the U.S. will remain closed for the Christmas Day holiday.
Thursday, December 26
Markets in New Zealand will remain closed in observance of Boxing Day.
Meanwhile, the U.S. is to release weekly data on initial jobless claims.
Friday, December 27
The U.S. is to round up the week with a report on crude oil supplies.







