Discussion of article "Horizontal diagrams on MеtaTrader 5 charts"

 

New article Horizontal diagrams on MеtaTrader 5 charts has been published:

Horizontal diagrams are not a common occurrence on the terminal charts but they can still be of use in a number of tasks, for example when developing indicators displaying volume or price distribution for a certain period, when creating various market depth versions, etc. The article considers constructing and managing horizontal diagrams as arrays of graphical primitives.

  1. There may be several diagrams (this is the case in majority of occasions).
  2. Most diagrams we are interested in consist of bars.
  3. Diagram bars are located horizontally.

Let's use a well-known example to see how such diagrams might look:



Below is another example. The same diagrams drawn by graphical primitives:


In this case, this is the indicator displaying tick volume distribution by days. This example shows quite clearly what tasks the developer has to solve:

  • Create multiple graphical objects, assign unique names to them and place them on the chart.
  • Scale and move the objects as needed.
  • Remove them from the chart when the indicator's work is done.

Once again, we should note that there are several diagrams, which will further enable us to talk about an array of diagrams.

Below is a final example:

Author: Andrei Novichkov

Reason: