-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathoptions.txt
157 lines (155 loc) · 5.3 KB
/
options.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
Supported options:
-4
Runs test under MetaTrader 4. Same as: -M 4.
-5
Runs test under MetaTrader 5. Same as: -M 5.
-b (option)
Source of backtest data to test. Default: DS
Variable (string): BT_SRC
-B (filename)
Specifies early booting script to execute.
Variable (string): INCLUDE_BOOT
-c (currency)
Base currency for test. Default: USD
Variable (string): BT_CURRENCY
-C
Clear previous backtest data files.
-d (amount)
Deposit amount to test. Default: 10000
Variable (int): BT_DEPOSIT
-D (digits)
Specifies number of digits after decimal point for the current symbol prices (e.g. 4 or 5).
Variable (uint): BT_DIGITS
-e (filename/url/pattern)
Specifies Expert Advisor to test (TestExpert).
Variable (string): TEST_EXPERT
-E (filename/url/pattern)
Specifies Expert Advisor to run (Expert).
Variable (string): EXPERT
-f (filename/auto)
The .set file to run the test.
When in optimization mode, better settings are applied into that file.
If file doesn't exist, generate one from EA.
Variable (string): SETFILE
-F
Convert test report file to full detailed text format.
Variable (bool): OPT_FORMAT_FULL
-g
Post results to Gist. It enables: -j and -t
Variables (bool): OPT_GIST
-G
Enhance gif report files.
Variable (bool): OPT_GIF_ENHANCE
-i (file)
Invoke file with custom rules.
Variable (string): INCLUDE
-I (options)
Change tester INI file with custom settings (e.g. Server=MetaQuotes-Demo,Login=123).
Variable (string): TEST_OPTS
-j
Converts test report file to JSON formatted file.
Variable (bool): OPT_FORMAT_JSON
-l (double)
Specifies a lot step (e.g. 0.01).
Variable (float): BT_LOTSTEP
-L (limit)
Specifies EA common/limit test parameters in a sequence of comma-separated values (e.g. genetic=0,maxdrawdown_enable=1,maxdrawdown=20.00).
Variable (string): EA_OPTS
-m (month)
Specifies range of months in each year to test. Default: 1-12.
Variable (uint/string): BT_MONTHS
-M (version)
Specifies version of MetaTrader to use for the test (e.g. 4, 5). Default: 4
Variable (string): MT_VER
-o
Runs test in optimization mode.
Variable (bool): OPT_OPTIMIZATION
-O (dir)
Output directory to save the test results. Default: /opt/results for Docker container.
Variable (string): BT_DEST
-p (pair)
Symbol pair to test (e.g. EURUSD).
Variable (string): BT_SYMBOL
-P (param)
Sets EA param in SET file (e.g. VerboseInfo=1,TakeProfit=0).
Variable (string): SET_OPTS
-r (string)
Specifies the name of the test report file. Default: tester/Report
Variable (string): TEST_REPORT_NAME
-R
Sets files to read-only.
-s (file/url/pattern)
Script to run (Script).
Variable (string): SCRIPT
-S (spread)
Specifies spread to test in points.
Variable (uint): BT_SPREAD
-t
Converts test report file to brief text format.
Variable (bool): OPT_FORMAT_BRIEF
-T (timeframe)
Specifies timeframe (TestPeriod) to use for the test. Default: M30
Variable (string): BT_PERIOD
-v
Verbose mode.
Variable (bool): OPT_VERBOSE
-V
Runs test in visual mode (TestVisualEnable).
Variable (bool): VISUAL_MODE
-x
Runs the script in trace/debug mode.
Variable (bool): OPT_TRACE
-X (file)
Invoke script file n exit after the successful test.
-y (year)
Specifies range of years to test. Default: 2019
Variable (uint/string): BT_YEARS
-_
Dry run.
Variable (bool): OPT_DRY_RUN
-?
Display help.
Other supported variables (without options assigned):
- BT_DAYS (uint/string)
Specifies range of days in each month to test. Default: 1-31.
- BT_LEVERAGE (uint)
Specifies account leverage to test. Default: 100.
- BT_TESTMODEL (uint)
Specifies type of backtest data being tested.
Values: 0 (default) - Every tick, 1 - Control points, 2 - Open prices only
- BT_PERIOD_FXT (string)
Overrides FXT file to use for the test.
By default, it is the same as BT_PERIOD.
- BT_TESTMODEL_FXT (uint)
Specifies type of backtest data being downloaded in FXT format.
Values: 0 (default) - Every tick, 1 - Control points, 2 - Open prices only
- EA_WHITELIST_URLS (string)
Adds URLs to whitelist. Separate by a semicolon. Required for WebRequest().
- GITHUB_API_TOKEN (string)
Personal access token (PAT) used for GitHub API.
- OPT_NOERR (bool)
Disables errexit flag to prevent exiting script on failure.
- RUN_ON_START (string)
Runs shell code on startup (before the test).
- RUN_ON_SET (string)
Runs shell code on SET configuration (e.g. "file_get URL").
- RUN_ON_SUCCESS (string)
Runs shell code after successful test.
- RUN_ON_ERROR (string)
Runs shell code on test errors (including warnings).
- RUN_ON_WARN (string)
Runs shell code on test warnings (e.g. memory leaks).
- RUN_ON_FAIL (string)
Runs shell code after the test failure.
- RUN_ON_EXIT (string)
Runs shell code on exit (after the test).
- JSON_PARSER (string)
Command to parse JSON file (e.g. jq or python).
- EX_ARGS (string)
Specifies the arguments passed to Ex editor on in-place file editing.
- OPT_DRY_RUN (bool)
Do not run test on dry run.
- SETFILE (string)
Specifies SET file to use for the test.
- SET_PARAMS (string)
Parameters to set optimized values in SET file (SETFILE) in a sequence of comma-separated values.