This GitHub Action runs MQL programs (such as Expert Advisors, indicators or scripts).
For full documentation, please read: GitHub Actions Documentation.
uses: fx31337/mql-tester-action@v1
uses: fx31337/mql-tester-action@v1.0.1
Note: Check Releases for more details.
uses: fx31337/mql-tester-action@master
uses: fx31337/mql-tester-action@master
with:
TestExpert: Dummy
BtPair: EURUSD
BtMonths: 1-2
BtYears: 2021
The name of the script to run.
The name of the Expert Advisor to test.
Symbol pair to use. Default: EURUSD.
Base currency to use. Default: USD.
Deposit amount to use. Default: 10000.
Specifies number of digits after decimal point for the current symbol prices (default: 5).
Specifies spread to use in points (e.g. 10).
Specifies range of days in each month to test (default: 1-31).
Specifies range of months in each year to test (default: 1).
Specifies year or range of years to test (default: 2019).
Specifies SET file to use for the test.
Specifies comma-separated custom params to set for EA (e.g. SomeOption=1,AnotherOption=0).
Timeframe to use for the test (default: M30).
Specifies directory to copy the results.
Default: /github/workspace (indicated by github.workspace variable).
Specifies the name of the test report file.
Default: tester/Report.
Runs test in optimization mode.
Specifies type of backtest data being tested.
Values:
- 0 (default) - Every tick
- 1 - Control points
- 2 - Open prices only
Specifies EA limit test parameters in a sequence of comma-separated values (e.g. genetic=0,maxdrawdown_enable=1,maxdrawdown=20.00).
Specifies parameters to optimize in SET file (SetFile
)
in a sequence of comma-separated values.
Runs command on startup (before the test).
Default: clean_sources (to remove source code files from the platform directory).
Runs command on SET configuration (e.g. file_get URL
).
Runs command after successful test.
Runs command on test error (including warnings).
Runs command on exit (after the test).
Runs command after test failure.
Runs command on test warnings (excluding errors).
Converts test report file to brief text format. Default: false.
Converts test report file to JSON formatted file. Default: false.
Specifies GitHub Personal access token (PAT) to increase API limits.
Destination path to install MetaTrader platform.
Default is the working directory (e.g. /github/workspace
).
Version of the MetaTrader platform to install. Default: 4.0.0.1382.
Enables trace mode. It provides extensive debugging messages. Default: false.
Enables verbose mode. It provides more detailed messages. Default: false.
- For bugs/features, raise a new issue at GitHub.