程序库: BestInterval - 页 25

 
traveller00:

看来你是对的。BestInterval 在潜在利润以及净额结算和对冲的时间间隔方面给出了不同的结果。我还没有查看细节,但交易列表乍一看是不正确的,CloseBy 平仓的开仓时间大多落在平仓订单的开仓时间上。

净额结算中没有 CloseBy。

 
我的意思是,在使用 CloseBy 的对冲中,开仓时间 并不总是正确地记录在数组中。因此,计算结果不正确。
 

@fxsaber

我已将 Bestinterval、Mt4Orders 和 Virtual (mqh) 更新到最新版本。

测试时我使用了示例。有任何帮助吗?



 
Nelk0n:

@fxsaber

我把 Bestinterval、Mt4Orders 和 Virtual (mqh) 更新到了最新版本。

测试时我使用了示例。有任何帮助吗?

#include <MT4Orders.mqh> //https://www.mql5.com/ru/code/16006

#include <fxsaber\Virtual\Virtual.mqh> //https://www.mql5.com/ru/code/22577

#define  BESTINTERVAL_ONTESTER // Критерий оптимизации - прибыль лучшего интервала.
#include <fxsaber\BestInterval\BestInterval.mqh> //https://www.mql5.com/ru/code/22710

#include <MT5Bridge.mqh> //https://www.mql5.com/ru/articles/8321

#include <..\Experts\Examples\MACD\MACD Sample.mq5>
 
BestInterval 可完全与 MT5 风格的智能交易系统配合使用。

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

库: BestInterval

fxsaber, 2020.10.02 22:01

#include <MT4Orders.mqh> //https://www.mql5.com/zh/code/16006

#include <fxsaber\Virtual\Virtual.mqh> //https://www.mql5.com/zh/code/22577

#define  BESTINTERVAL_ONTESTER // 优化标准是最佳区间的利润。
#include <fxsaber\BestInterval\BestInterval.mqh> //https://www.mql5.com/zh/code/22710

#include <MT5Bridge.mqh> //https://www.mql5.com/zh/articles/8321

#include <..\Experts\Examples\MACD\MACD Sample.mq5>

代码有些出人意料。四个库,这对于 MT5 风格的 EA 而言是相当棘手的,无需更改即可获得新功能。

MT5 风格通过 MT4Orders 转换为 MT4 风格。然后是 Virtual,通过 MT4-style 运行。然后内置 BestInterval,同样与 MT4 风格配合使用。最后,通过 MT5Bridge 将整个嵌套娃娃转换为 MT5 风格,并正确输入标准 MT5-advisor。

但结果看起来不错,也完成了任务。

[删除]  

我为我的无知道歉,我今天才知道这个图书馆。我没有读完整个主题...

您能解释一下这是什么意思吗?

2020.10.06 01:36:55.839 Core 1  2020.05.29 23:54:59   Amount of Delete Intervals = 3 (2020.03.01 - 2020.05.22)
2020.10.06 01:36:55.839 Core 1  2020.05.29 23:54:59   11:17:22 - 14:07:37 : Profit = 127.25 (29.94%), Total = 9 (44.44%), PF = 6.43, Mean = 14.14, DD = 21.49, RF = 5.92
2020.10.06 01:36:55.839 Core 1  2020.05.29 23:54:59   14:57:47 - 16:31:40 : Profit = 191.84 (45.13%), Total = 6 (50.00%), PF = 5.71, Mean = 31.97, DD = 21.45, RF = 8.94
2020.10.06 01:36:55.839 Core 1  2020.05.29 23:54:59   17:30:28 - 19:33:01 : Profit = 105.99 (24.93%), Total = 11 (36.36%), PF = 2.80, Mean = 9.64, DD = 41.26, RF = 2.57
2020.10.06 01:36:55.839 Core 1  2020.05.29 23:54:59   SUMMARY: 00:00:00 - 23:59:59 : Profit = 425.08 (100.00%), Total = 26 (42.31%), PF = 4.46, Mean = 16.35, DD = 30.20, RF = 14.08

尽管测试后净利润显示为 165.....

 
Сергей Таболин:

我为我的无知道歉,我今天才知道这个图书馆。我没有读完整个主题...

您能解释一下这是什么意思吗?

尽管测试后净利润显示为 165.....

这些是坏间隔弹射结果的详细信息。最好阅读一下主题--只有我的帖子。

[删除]  
fxsaber:

这些都是扔掉坏间隔的详细结果。最好还是阅读一下主题--只是我的帖子。

我会的。))

一个小问题--指定的时间是坏区间吗?

 
Сергей Таболин:

有一个小问题--指定的时间是坏的时间间隔吗?

是个好问题。

[删除]  
fxsaber:

这是个好主意。

请阅读。

更多问题 ))))

关于上述日志:

第一行很清楚,删除的间隔数。

下一行。从 11:17 到 14:07 的时间。这是交易时间。但删除的时间间隔数不是 3,而是 4!不一致...


在库的描述中,在示例中指定了两个包含项。

#include <MT4Orders.mqh> // https://www.mql5.com/zh/code/16006
#include <fxsaber\BestInterval\BestInterval.mqh> // 计算最佳交易间隔

但在235 号 文件中却不一样。正确的方法是什么?


输入参数中也没有出现BestInteval 操作。我做错了什么?