脚本: ThirdPartyTicks - 页 9

 
fxsaber,谢谢,成功了!
 
Sergey Lebedev:

今天我也在处理这个脚本,我仍然和Traveller00 2 一样,对是否存在刷新进行了双重检查:假设 Sync = t rue(即需要进行刷新)。

- 首先,我们运行 Refresh() - 在所有符号部分,我们已经确定服务器上是否有更新、

我们得到了在线和离线文件的列表。

- 然后运行 Update(false) - 下载特定符号的新压缩文件,false 可以防止重复刷新、

下载列表中的差异。

- 然后执行 ToCustomSymbol(Sync, false, MinPips) - 在此我们重建自定义符号,但如果最初 Sync = true ,则会重复调用 Refresh(true) 。

由于存在同步,上传后我们需要刷新离线列表,以便开始解析其中的报价。

 
现在脚本的刻度线来源是 MT5。因此可以直接使用(尚未尝试)。
 
我查过了。有时甚至连 M15 上的蜡烛都不匹配。
附加的文件:
Image1.png  25 kb
 
Evgenii Kuznetsov:
我查过了。有时甚至连 M15 上的蜡烛都不匹配。

它们不一定要匹配。将刻度线移动一毫秒,你就会发现即使是 H1 柱也会发生变化。

 
fxsaber:
现在脚本的刻度线来源是 MT5。因此,直接使用它是可能的(还没试过)。

要么是我运气不好,要么就是最好不要直接使用。过去 3 个月的运行情况

AUDNZD : 2020.03.02 23:59 - real ticks absent for 72 minutes out of 1435 total minute bars within a day
AUDNZD : 2020.03.02 23:59 - real ticks discarded for 1363 minutes out of 1435 total minute bars within a day
AUDNZD : 2020.03.02 23:59 - 151776 tick prices mismatch for 1363 minute bars
AUDNZD : 2020.03.03 23:59 - real ticks absent for 894 minutes out of 1435 total minute bars within a day
AUDNZD : 2020.03.03 23:59 - real ticks discarded for 541 minutes out of 1435 total minute bars within a day
AUDNZD : 2020.03.03 23:59 - 72794 tick prices mismatch for 541 minute bars
AUDNZD : 2020.03.04 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.04 23:59 - 105750 tick prices mismatch for 1435 minute bars
AUDNZD : 2020.03.05 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.05 23:59 - 93130 tick prices mismatch for 1435 minute bars
AUDNZD : 2020.03.06 23:59 - real ticks absent for 4 minutes out of 1434 total minute bars within a day
AUDNZD : 2020.03.06 23:59 - real ticks discarded for 1430 minutes out of 1434 total minute bars within a day
AUDNZD : 2020.03.06 23:59 - 132351 tick prices mismatch for 1430 minute bars
AUDNZD : 2020.03.09 23:59 - real ticks absent for 1 minutes out of 1424 total minute bars within a day
AUDNZD : 2020.03.09 23:59 - real ticks discarded for 1423 minutes out of 1424 total minute bars within a day
AUDNZD : 2020.03.09 23:59 - 226074 tick prices mismatch for 1423 minute bars
AUDNZD : 2020.03.10 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.10 23:59 - 189595 tick prices mismatch for 1436 minute bars
AUDNZD : 2020.03.11 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.11 23:59 - 156645 tick prices mismatch for 1436 minute bars
AUDNZD : 2020.03.12 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.12 23:59 - 239423 tick prices mismatch for 1436 minute bars
AUDNZD : 2020.03.13 23:59 - real ticks absent for 4 minutes out of 1379 total minute bars within a day
AUDNZD : 2020.03.13 23:59 - real ticks discarded for 1375 minutes out of 1379 total minute bars within a day
AUDNZD : 2020.03.13 23:59 - 240354 tick prices mismatch for 1375 minute bars
AUDNZD : 2020.03.16 23:59 - real ticks absent for 21 minutes out of 1436 total minute bars within a day
AUDNZD : 2020.03.16 23:59 - real ticks discarded for 1415 minutes out of 1436 total minute bars within a day
AUDNZD : 2020.03.16 23:59 - 232846 tick prices mismatch for 1415 minute bars
AUDNZD : 2020.03.17 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.17 23:59 - 170369 tick prices mismatch for 1436 minute bars
AUDNZD : 2020.03.18 23:59 - real ticks absent for 2 minutes out of 1436 total minute bars within a day
AUDNZD : 2020.03.18 23:59 - real ticks discarded for 1434 minutes out of 1436 total minute bars within a day
AUDNZD : 2020.03.18 23:59 - 236843 tick prices mismatch for 1434 minute bars
AUDNZD : 2020.03.19 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.19 23:59 - 322182 tick prices mismatch for 1436 minute bars
AUDNZD : 2020.03.20 23:59 - real ticks absent for 3 minutes out of 1379 total minute bars within a day
AUDNZD : 2020.03.20 23:59 - real ticks discarded for 1376 minutes out of 1379 total minute bars within a day
AUDNZD : 2020.03.20 23:59 - 212599 tick prices mismatch for 1376 minute bars
AUDNZD : 2020.03.23 23:59 - real ticks discarded for 1422 minutes out of 1429 total minute bars within a day
AUDNZD : 2020.03.23 23:59 - 363481 tick prices mismatch for 1422 minute bars
AUDNZD : real ticks begin from 2020.01.02 00:00:00
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  real ticks absent for 1001 minutes of 28527 total minute bars, every tick generation used
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  real ticks discarded for 21829 minutes of 28527 total minute bars, every tick generation used
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  real ticks discarded for 7 whole days
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  tick volumes not matched for 1429 minute bars
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  tick prices of 3146212 ticks not matched for 21829 minute bars
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  last prices absent for 7 minute bars, bid prices used
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  last prices absent for 1 whole days, bars built by bid prices
 
traveller00:

要么是我运气不好,要么就是最好不要直接使用。过去三个月我一直在使用它

我说的是 tick 源,而不是原始符号的回测。

MT5 测试仪优先使用 M1 条,而不是刻度线。这就是日志中出现大量错误的原因。

 
是的,我明白。我只是说,最好还是创建一个自定义符号,即使不是通过网络,而是直接创建一个符号副本。但最好不要直接在符号上测试。
 
traveller00:
最好不要直接在符号上进行测试。

关于交易、自动交易系统和测试交易策略的论坛

图书馆:符号

fxsaber, 2020.03.26 08:02

如果我们在Swissquote-Server 上开立一个模拟账户并运行此脚本,我们将得到以下一行。

2020.03.26 08:53:12.567 5, 5

这意味着历史买入价/卖出价与市场观察(Market Watch)中的价格相差 5 个点(历史买入价/卖出价优于历史买入价/卖出价)。

因此,在测试器中无法在原始符号上重现在终端中看到的情况。


唯一的解决办法是使用自定义符号,该符号基于历史跳动点的相应分界点。

也就是说,原始符号上的 Tester 可以生成完全同步的刻度线和条形图历史记录,日志中不会出现错误。只有结果是废话。

 

我不知道这是一个错误还是一个功能,但它可能会导致错误。在未过滤报价中,工具类型仍然是外汇。