Discussing the article: "How to view deals directly on the chart without weltering in trading history"

 

Check out the new article: How to view deals directly on the chart without weltering in trading history.

In this article, we will create a simple tool for convenient viewing of positions and deals directly on the chart with key navigation. This will allow traders to visually examine individual deals and receive all the information about trading results right on the spot.

The purpose of this article is to offer a solution that will make it easier to perceive and analyze trading history. We will develop a mechanism for step-by-step display of closed positions and improved deal information. This will allow traders to focus on each individual deal and gain a deeper understanding of their trading operations.

We will implement the functions that will allow us to:

  • View closed positions one by one using the navigation keys.
  • Improve tooltips by providing more detailed information about each deal.
  • Center the chart so that the most important elements are always visible.

Now let's compile the EA and launch it on the chart:


At launch, the history displayed by standard means was hidden with only the last closed position remaining visible. We can navigate through the history of positions by holding down Ctrl and pressing the cursor keys. While moving through the list of closed positions, we can easily see a graphical representation of the trading history in the place where the chart was filled with labels of all the deals of the positions closed here.

If we also hold down Shift, a description of the currently selected closed position is displayed in the chart comment.

This is convenient because it allows us to see a description of the position without hovering the mouse cursor over the line connecting the deals. If we move through the list of closed positions using the cursor keys, holding down Ctrl + Shift, we can clearly see the description of the closed position currently displayed on the chart.

    Author: Artyom Trishkin