Showing Events on a Chart (MT5 中显示数据日历)

Any economic event can be shown on a chart. This can be done in several ways:

  • Drag an event to a chart (Drag'n'Drop) — only the selected event will be shown in the chart;
  • Drag an event to a chart holding the "Shift" key — all events related to the base or quoted currency of the chart symbol will be moved on the selected chart;
  • Use the "Add All Events" command in the context menu.

Events are shown on charts as a special object:


Parameters of object of events can be managed from a standard dialog of object properties. The object body contains the time of the event, and its tooltip contains the full date, name, the actual and forecast value of economical rate.


Context Menu

From the context menu of this tab you can perform the following commands:

  • Refresh — refresh data of the economic calendar;
  • Export — export data of the economic calendar in a HTM file;
  • Show on Charts — open the submenu containing commands of working with events on a chart:
  • Add All Events — show all events on all opened charts. On each chart only events related to the base or quoted currency of its symbol will be shown;
  • Delete All Events — remove all event objects from all charts that are currently open;
  • Auto Update — if this option is enabled, changes in the economic calendar will automatically appear on all charts that are currently open. This can be change of events or appearance of new ones.
  • Auto Arrange — if this option is enabled, the size of columns is selected automatically;
  • Grid — show/hide grid to separate columns.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要解决Matplotlib画图显示为方框的问题,可以采取以下方法: 方法一:使用字体设置 您可以使用Matplotlib的字体设置功能来解决显示为方框的问题。首先,您需要确定您所使用的字体文件路径,在Python执行以下代码可以找到Matplotlib的安装路径: ```python import matplotlib matplotlib.matplotlib_fname() ``` 执行上述代码后,您将获得Matplotlib的安装路径。接下来,您可以将以下代码添加到您的绘图脚本,用于设置字体: ```python import matplotlib.pyplot as plt plt.rcParams['font.sans-serif'] = ['SimHei'] #指定文字体 plt.rcParams['axes.unicode_minus'] = False #解决负号'-'显示为方块的问题 ``` 这里使用了'SimHei'字体作为文字体,您也可以根据需要选择其他文字体。添加了这些代码后,再执行绘图代码,就会发现文可以正确显示了。 方法二:使用系统字体 如果您希望使用系统已经安装的字体来显示文,可以使用以下代码将系统字体设置为Matplotlib的默认字体: ```python import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties font = FontProperties(fname=r"c:\windows\fonts\simsun.ttc", size=14) #指定系统字体文件路径和字体大小 plt.rcParams['font.family'] = font.get_name() #设置系统字体为Matplotlib的默认字体 plt.rcParams['axes.unicode_minus'] = False #解决负号'-'显示为方块的问题 ``` 这里使用了宋体字体文件'simsun.ttc'作为系统字体,您可以根据自己的系统和需求选择其他字体。添加了这些代码后,再执行绘图代码,文应该可以正确显示了。 需要注意的是,以上方法仅适用于Matplotlib版本2.2及以上。如果您使用的是较旧版本的Matplotlib,可以考虑升级到最新版本以获得更好的文支持。 Matplotlib官方文档: https://matplotlib.org/stable/tutorials/introductory/usage.html#sphx-glr-tutorials-introductory-usage-py Stack Overflow: https://stackoverflow.com/questions/18000793/matplotlib-showing-boxes-instead-of-chinese-characters CSDN博客: https://blog.csdn.net/guotianqing/article/details/96331857
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值