MetaTrader 4帮助
MetaTrader 4帮助Working with ChartsChart Opening

Chart Opening

A chart shows the price changes for a security with the time. Charts are necessary for performing technical analysis, working of expert advisors and testing thereof. Up to ninety-nine charts can be opened in the terminal at the same time.


A new chart can be opened by executing of the "File – New Chart" menu, "Window – New Window" menu command, or by pressing of the New Chart button of the "Standard" toolbar. The list of securities available will appear at performing any of the above actions. Having selected the necessary symbol from this list, one can open its chart. New charts can also be opened from the "Market Watch" window, holding Ctrl and dragging the element of the list (the symbol) from the window into any point of the workspace of the terminal, or having executed the "Chart Window" command of the context menu. All new charts are opened with the DEFAULT.TPL template created during the terminal installation. This template cannot be deleted, but it can be modified.

History data used for drawing of charts are stored on the hard disk. At opening of a chart, the data are downloaded from the disk and the last missing data are spooled from the trading server. If there are no history data for the symbol on the hard disk, the latest 512 bars of history will be downloaded. To spool the earlier data, one has to move the chart to the desired area. After the chart has been opened, information about the current quotes starts to income to the terminal. Thus, the further price changes will be shown in the real-time mode. This information will be stored in the history file and used at the reopening of this chart in future.

Attention: The "Max. bars in history" and "Max. bars in chart" parameters are defined in the terminal settings. These parameters allow to control over the amount of history data displayed and stored on the hard disk.

Offline Charts

Client terminal allows to work with offline charts. These charts are opened on basis of data saved on the hard disk in HST format. They are not updated from the server. These charts turn out as very useful for working with non-standard securities or periods.

To open a new chart in offline mode, one has to execute the "File – Open Offline" menu command. Then, a symbol must be selected in the window that appears, and the "Open" button must be pressed. The OFFLINE.TPL template is applied to the chart automatically. At that, the "(offline)" inscription will appear added in the heading of the offline chart.

At testing an expert, the data file in FXT format is created and used. It differs from a standard chart, but it can be opened offline.