Discussing the article: "Monitoring trading with push notifications — example of a MetaTrader 5 service"

 

Check out the new article: Monitoring trading with push notifications — example of a MetaTrader 5 service.

In this article, we will look at creating a service app for sending notifications to a smartphone about trading results. We will learn how to handle lists of Standard Library objects to organize a selection of objects by required properties.

When trading on financial markets, an important component is the availability of information about the results of trades conducted over a certain period of time in the past.

Probably, every trader at least once faced the need to monitor the trading results for the past day, week, month, etc., in order to adjust their strategy based on the trading results. MetaTrader 5 client terminal provides good statistics in the form of reports allowing us evaluate the trading results in a convenient visual form. The report can help optimize our portfolio, as well as understand how to reduce risks and increase trading stability.

To analyze a strategy, click Report in the trading history context menu or Reports in the View menu (or simply press Alt+E):




Find more details in the article "New MetaTrader report: 5 most important trading metrics".

If for some reason the standard reports provided by the client terminal are not sufficient, the MQL5 language provides ample opportunities for creating your own programs, including the ones for generating reports and sending them to the trader’s smartphone. This is the possibility we will discuss today.

Our program should start at the moment of terminal launch, track the change of a trading account, daytime onset and the time for creating and sending reports. The Service program type will suit us for such purposes.

Author: Artyom Trishkin

 
correct me if I'm wrong, why are you re-doing yourself? Account, Position and Select classes, looks awfully similar to what you already have in do easy library! why re-implement what you already have ready? If you needed additional functionality, wouldn't it be better to add the functionality to already existing library and use it?
 
theonementor # :
Correct me if I'm wrong, why are you remodelling yourself? The Account, Position and Select classes are very similar to what you already have in your library do easy! why re-implement something that is already ready? If you need additional functionality, wouldn't it be better to add it to an existing library and use it?

This article is not related to library articles. But the concept of building objects is taken from the library. Please re-read the article for understanding.

 
Artyom Trishkin # :

This article is not related to the library articles. But the concept of constructing objects is taken from the library. Please reread the article to understand.

will you add this functionality to library later?
 
theonementor #:
will you add this functionality to library later?

Later, yes.

But it will not be a repetition of what is written here. It will be possible to design something for yourself from a set of methods.