Steuerung des MT5 aus der Comandline

Einloggen oder registrieren, um einen Kommentar zu schreiben
Christian
2033
Christian  

Hallo zusammen,

ich starte den MT5 aktuell aus per Comandline um die automatisierten Test mit Matlab zu parallelisieren.

Aus Matlab heraus wird immer eine Instanz gestartet. Der Tester startet , Matlab verbindet sich und führt einen Test durch.

Danach schließt sich der MT5 gewollt automatisch. Und die Instanz wird frei für den nächsten Test.



Nun meine Frage :

Wie komme ich automatisiert an die Reporte des MT5 StrategieTesters ran ?

Diese beiden speichert er ja nicht automatisch

1.




Oder etwa doch ?


Gruß

Carl Schreiber
Moderator
6860
Carl Schreiber  

Cristian,

zur Comandline hab ich mir diese Links gespeichert - ich weiß nicht, ob Dir eine davon helfen kann, und ob sie überhaupt noch leben:

http://forum.mql4.com/33965
http://forum.mql4.com/47016
http://www.tickstory.com/forum/viewtopic.php?f=2&t=301
https://www.mql5.com/en/forum/10138
http://www.deep-thought.co/feature-list
http://www.metatrader5.com/en/terminal/help/startworking/start/service_config
http://www.metatrader5.com/en/terminal/help/startworking/start/command_line

Starting strategy tester through command line parameters?
Starting strategy tester through command line parameters?
  • 2010.07.27
  • www.mql5.com
Is there a possibility to start a backtest from the command line? Something like "terminal.exe -tester EAxyz EURUSD 5min 2000.01.01 2010.01...
Christian
2033
Christian  
Carl Schreiber:

Cristian,

zur Comandline hab ich mir diese Links gespeichert - ich weiß nicht, ob Dir eine davon helfen kann, und ob sie überhaupt noch leben:

http://forum.mql4.com/33965
http://forum.mql4.com/47016
http://www.tickstory.com/forum/viewtopic.php?f=2&t=301
https://www.mql5.com/en/forum/10138
http://www.deep-thought.co/feature-list
http://www.metatrader5.com/en/terminal/help/startworking/start/service_config
http://www.metatrader5.com/en/terminal/help/startworking/start/command_line

Einige sind tot, aber der letzte war hilfreich Carl.

Hatte mir auch nur aus Foren diese Komandos zusammengesucht.

https://www.metatrader5.com/en/terminal/help/start_advanced/start

Da ist ja sogar ne Hilfe dazu.

[Tester]

Parameters of testing that starts automatically when you run the platform:

  • Expert — the file name of the Expert Advisor that will automatically run in the testing (optimization) mode. If this parameter is not present, testing will not run.
  • ExpertParameters — the name of the file that contains Expert Advisor parameters. This file must be located in the MQL5\Profiles\Tester folder of the platform installation directory.
  • Symbol — the name of the symbol that will be used as the main testing symbol. If this parameter is not added, the last selected symbol in the tester is used.
  • Period — testing chart period (any of the 21 periods available in the platform). If the parameter is not set, default H1 is used.
  • Login — this parameter communicates to the Expert Advisor the value of an account, on which testing is allegedly performed. The need for this parameter is set in the source MQL5 code of the Expert Advisor (in the AccountInfoInteger function).
  • Modeltick generation mode (0 — "Every tick", 1 — "1 minute OHLC", 2 — "Open price only", 3 — "Math calculations", 4 — "Every tick based on real ticks"). If this parameter is not specified, Every Tick mode is used.
  • ExecutionMode — trading mode emulated by the strategy tester (0 — normal, -1 — with a random delay in the execution of trading orders, >0 — trade execution delay in milliseconds, it cannot exceed 600 000).
  • Optimization — enable/disable optimization, its type (0 — optimization disabled, 1 — "Slow complete algorithm", 2 — "Fast genetic based algorithm", 3 — "All symbols selected in Market Watch").
  • OptimizationCriterionoptimization criterion: (0 — the maximum balance value, 1 — the maximum value of product of the balance and profitability, 2 — the product of the balance and expected payoff, 3 — the maximum value of the expression (100% - Drawdown)*Balance, 4 — the product of the balance and the recovery factor, 5 — the product of the balance and the Sharpe Ratio, 6 — a custom optimization criterion received from the OnTester() function in the Expert Advisor).
  • FromDate — starting date of the testing range in format YYYY.MM.DD. If this parameter is not set, the date from the corresponding field of the strategy tester will be used.
  • ToDate — end date of the testing range in format YYYY.MM.DD. If this parameter is not set, the date from the corresponding field of the strategy tester will be used.
  • ForwardModeforward testing mode (0 — off, 1 — 1/2 of the testing period, 2 — 1/3 of the testing period, 3 — 1/4 of the testing period, 4 — custom interval specified using the ForwardDate parameter).
  • ForwardDate — starting date of forward testing in the format YYYY.MM.DD. The parameter is valid only if ForwardMode=4.
  • Report — the name of the file to save the report on testing or optimization results. The file is created in the trading platform directory. You can specify a path to save the file, relative to this directory, for example, \reports\tester.htm. The subdirectory where the report is saved should exist. If no extension is specified in the file name, the ".htm" extension is automatically used for testing reports, and ".xml" is used for optimization reports. If this parameter is not set, the testing report will not be saved as a file. If forward testing is enabled, its results will be saved in a separate file with the ".forward" suffix. For example, tester.forward.htm.
  • ReplaceReport — enable/disable overwriting of the report file (0 — disable, 1 — enable). If overwriting is forbidden and a file with the same name already exists, a number in square brackets will be added to the file name. For example, tester[1].htm. If this parameter is not set, default 0 is used (overwriting is not allowed).
  • ShutdownTerminal — enable/disable platform shutdown after completion of testing (0 — disable, 1 — enable). If this parameter is not set, the "0" value is used (shutdown disabled). If the testing/optimization process is manually stopped by a user, the value of this parameter is automatically reset to 0.
  • Deposit — initial deposit for testing optimization. The amount is specified in the account deposit currency. If the parameter is not specified, a value from the appropriate field of the strategy tester is used.
  • Currency — deposit currency for testing/optimization purposes. Specified as a three-letter name, e.g. EUR, USD, CHF etc. Please note that cross rates for converting profit and margin to the specified deposit currency must be available on the account, to ensure proper testing. If the parameter is not specified, a value from the appropriate field of the strategy tester is used.
  • Leverage — leverage for testing/optimization. For example, 1:100. If the parameter is not specified, a leverage from the appropriate field of the strategy tester is used.
  • UseLocal — enable/disable the use of local agents for testing and optimization (0 — disable, 1 — enable). If the parameter is not specified, current platform settings are used.
  • UseRemote — enable/disable use of remote agents for testing and optimization (0 — disable, 1 — enable). If the parameter is not specified, current platform settings are used.
  • UseCloud — enable/disable use of agents from the MQL5 Cloud Network (0 — disable, 1 — enable). If the parameter is not specified, current platform settings are used.
  • Visual — enable (1) or disable (0) the visual test mode. If the parameter is not specified, the current setting is used.
  • Port — the port, on which the local testing agent is running. The port should be specified for the parallel start of testing on different agents. For example, you can run parallel tests of the same Expert Advisor with different parameters. During a single test port can be omitted.


In der Mitte ist auch die Option für Report Save.


Danke Carl...

Platform Start - For Advanced Users - MetaTrader 5
Platform Start - For Advanced Users - MetaTrader 5
  • www.metatrader5.com
After installation, a group of programs of the trading platform is added to the Start menu, and the program shortcut is created on the desktop. Use them to run the platform. Two copies of the platform cannot run from the same directory. If you need to run multiple copies at the same time, install the appropriate number of programs in different...
Christian
2033
Christian  

Schön wäre noch die Option den Report als Excel File zu speichern.

Denn html zu parsen ist weit aufwendiger.


Service Desk ist informiert.....mal sehen .

Einloggen oder registrieren, um einen Kommentar zu schreiben