[英]MetaTrader4 Terminal, Strategy Tester: how to jump from a [ Results Window ] to the [ Graph ] BEFORE a Trade Happens?
I use the MetaTrader Terminal 4, the Strategy Tester, to optimize an Expert Advisor. 我使用MetaTrader Terminal 4(策略测试器)来优化EA交易。
After a strategy run, I am looking at the individual trades that were executed in that backtest. 在执行策略之后,我将查看在该回测中执行的各个交易。 I jump from the
Results
sub-window at the bottom of the screen to the referring candle stick in the main chart. 我从屏幕底部的“
Results
子窗口跳转到主图表中的引用烛台。
After jumping to the candle stick chart, the chart shows the referring actions ( sell stop
, sell
, t/p
) at the left side of the chart. 跳到烛台图表后,该图表在图表左侧显示了参考操作(
sell stop
, sell
, t/p
)。
How is it possible to have the chart centered around these actions or to have the chart showing these actions at the right side of the time window? 如何使图表围绕这些操作居中,或者如何将显示这些操作的图表置于时间窗口的右侧 ?
Your operation starts at 15:00 and the graph candle you are pointing is the candle starting at 15:00. 您的操作从15:00开始,而您所指向的图形蜡烛就是从15:00开始的蜡烛。
The right of the graph is the future, and the left is the past. 图的右边是未来,左边是过去。 So the graph starts just in time BEFORE the operation happens.
因此,图形会在操作发生之前及时开始。
In your graph the left side of the X-Axis is 8 May and the right side of the X-Axis is 12 May. 在您的图形中,X轴的左侧为5月8日,X轴的右侧为5月12日。
One issue you could have is that the graph you are showing is H1 (see the left top indication), so you don't have enough time resolution to see the details. 您可能会遇到的一个问题是,所显示的图形是H1(请参见左上方的指示),因此您没有足够的时间分辨率来查看详细信息。 If you use a M1 graph you'll see with more accuracy the entry and exit points of your strategy.
如果使用M1图,则会更准确地看到策略的入口点和出口点。
If your wish is to somehow modify an event-handling of the MetaTrader Terminal 4/5, than 如果您希望以某种方式修改MetaTrader Terminal 4/5的事件处理,
( as of 2018-03 ) the software does not provide you any native tool for making this happen . (从2018-03开始) 该软件没有为您提供任何本地工具来实现这一目标 。 Neither the built-in GUI-event processing ( a-mouse-click ), nor the script-based, code-automated, processing has any means, how a user-code would get an ability to change the default result, as described in your post.
内置的GUI事件处理(a-mouse-click)或基于脚本的,代码自动处理都没有任何方式,用户代码将如何获得更改默认结果的能力,如您的帖子。
Yet, there is one possibility to get where you want to. 但是,有一种方法可以到达您想要的位置。 One can build an external process, that can communicate with MetaTrader Terminal and thus build your GUI-presentation(s) absolutely free from any hard-wired MT4 Terminal built-ins.
您可以构建一个外部流程,该流程可以与MetaTrader终端进行通信,从而完全从任何硬连线的MT4终端内置程序中构建您的GUI演示。
This way you can integrate analytical platforms, that are limited just by one's imagination and/or budget. 这样,您可以集成分析平台,该平台仅受人的想象力和/或预算限制。
As an example, this is an external real-time GUI from an external analytic processing, based on MT4 data and flow of both XTO/NTO-events, yet working inside a tight RT-control-loop, having a RTT latency of ~ < 75 ms per event-processed: 例如,这是一个来自外部分析处理的外部实时GUI,基于MT4数据和XTO / NTO事件的流向,但仍在严格的RT控制环内运行,RTT延迟为〜<每个事件处理75毫秒:
MT4 <->
C/C++ ->
MATLAB ->
python2.7 <->
Tkinter MT4
<->
C / C ++ ->
MATLAB- ->
python2.7 <->
Tkinter
^ |
| |
+-------------------------------------+
So, you can get any precision, down to the per each QUOTE
-event fidelity analytics, if you need and wish to have it. 因此,如果需要并希望获得精度,则可以精确到每个
QUOTE
事件保真度分析。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.