【问题标题】:Running test from script in 2022 with MT52022 年使用 MT5 从脚本运行测试
【发布时间】:2023-01-15 05:46:27
【问题描述】:

我一直在研究一个 bash 脚本,以便在 Windows 上与 MSYS 一起运行,它应该能够启动测试并以 html 报告的形式获取报告。但我所做的就是在没有任何配置的情况下启动终端。

使用类似于以下内容的配置文件:

 ; start strategy tester
  TestExpert=<full path to .ex5 file>
  TestExpertParameters=<full path to .set file>
  TestSymbol=WDOV22
  TestPeriod=H1
  TestModel=2
  TestSpread=0
  TestOptimization=false
  TestDateEnable=true
  TestFromDate=2022.01.01
  TestToDate=2022.06.06
  TestReport=<full path to non existing file without extension>
  TestReplaceReport=true
  TestShutdownTerminal=true

如果我转到 PowerShell 窗口并运行:

.\terminal64.exe "<fullpath to config file>"

或者:

.\terminal64.exe /config:"<fullpath to config file>"

或者:

.\terminal64.exe /portable /config:"<fullpath to config file>"

和其他变化一样,所发生的只是 MetaTrader5 打开,没有执行测试,测试器上的配置没有改变等等。

问题:

1 - 有人设法做类似的事情吗?该论坛中的所有答案似乎都过时了,文档也很混乱。

2 - .ini 文件是否需要一些特定的编码?它需要是 ASCII 还是 UTF-8 就足够了?

3 - /portable 标志是否有效?有必要吗?

4 - 我做错了什么可笑的事吗? MT5 不会以某种方式提示我可能做错了什么吗?

5 - 日志说云服务器已关闭,但我还是尝试在本地进行测试。

【问题讨论】:

    标签: automated-tests mql5 metatrader5


    【解决方案1】:

    你检查过你的日记/日志了吗?

    我只是将我的批处理设置放在一个 repo 中,你可以在我的 github 帐户中找到它:FuscaSoftware MT5BatchSetup 我希望它能帮助你。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-12
      • 2013-02-24
      • 1970-01-01
      • 2011-11-27
      • 1970-01-01
      相关资源
      最近更新 更多