New article MQL5 Cookbook: Monitoring Multiple Time Frames in a Single Window has been published:
When choosing the direction for opening a position, a price chart
with multiple time frames displayed at the same time may be quite
useful. The MetaTrader 5 Client Terminal provides 21 time frames for
analysis. You can take advantage of special chart objects that you can
place on the existing chart and set the symbol, time frame and some
other properties right there. You can add any number of such chart
objects, however it would be quite inconvenient and time-consuming if
done manually. On top of that, not all chart properties can be set in
In this article, we will take a closer look at such
graphical objects. For illustrative purposes, we will create an
indicator with controls (buttons) that will allow us to set multiple
chart objects in a subwindow at the same time. Furthermore, chart
objects will accurately fit in the subwindow and will be automatically
adjusted when the main chart or terminal window is resized.
addition to buttons for adding chart objects, we will also have buttons
for enabling/disabling some of the chart properties, including those
that can only be modified programmatically.
Author: Anatoli Kazharski
Thank you for such a great article! I was just wondering about the subwindow indicator.. I notice that you have it set to be on the chart window instead of separate window... is this a mistake?