Skip to content

FX31337/MQL-Tester-Action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

MQL Tester 🐳 Action

Tag Status Status Status Status Channel Edit

This GitHub Action runs MQL programs (such as Expert Advisors, indicators or scripts).

Usage

For full documentation, please read: GitHub Actions Documentation.

Latest release

uses: fx31337/mql-tester-action@v2

Specific release

uses: fx31337/mql-tester-action@v2.0.0

Note: Check Releases for more details.

Latest development version

uses: fx31337/mql-tester-action@master

Overriding default inputs

uses: fx31337/mql-tester-action@master
with:
  Login: ${{ secrets.MT5_LOGIN }}
  Password: ${{ secrets.MT5_PASSWORD }}
  Server: MetaQuotes-Demo
  TestExpert: EA31337-Libre-v1.013.ex5
  TestFromDate: 2024.01.01
  TestPeriod: M15
  TestSymbol: EURUSD
  TestToDate: 2024.01.12
  UrlExpert: >-
    https://github.com/EA31337/EA31337-Libre/releases/download/v1.013/EA31337-Libre-v1.013.ex5
  Version: 5

Inputs

Common

Login

Account number.

Password

Password to the account.

Server

Trade server.

Runner

RunnerTimeout

Time to wait for platform to finish the test (in seconds). Default: 600.

Start Up

Expert

The name of the EA file to run.

Period

The default timeframe of the chart.

Script

The name of the script file to run.

Tester

Optimization

TestDeposit

Initial deposit to use for testing. MT5 only.

TestExpert

The name of the Expert Advisor file to test.

TestFromDate

The date to start testing (yyyy.mm.dd).

TestExecutionMode

Trading execution mode. Default 0 (normal).

TestExpertParameters

The name of the SET file with EA parameters.

TestLeverage

Leverage to use for testing/optimization.

TestModel (int)

Specifies type of modelling to use. Default 1 (1 minute OHLC).

Values:

  • 0 (default) - Every tick
  • 1 - Control points
  • 2 - Open prices only

TestOptimization

Specifies testing mode. Default: 0 (backtest).

TestOptimizationCriterion (int)

Specifies optimization criterion. MT5 only.

TestPeriod

Timeframe to use for the test.

TestReport

Specifies the name of the test report file.

TestReplaceReport (bool)

Specifies whether to enable overwriting of the report file.

TestScriptParameters

The name of the SET file with script parameters.

TestSpread

Specifies spread to use in points (e.g. 10). MT4 only.

TestSymbol

Symbol pair for the test to use. Default: EURUSD.

TestToDate

The date to finish testing (yyyy.mm.dd).

Other

UrlExpert

URL of Expert Advisor to download.

UrlPlatform

URL of the platform to install.

Platform

Version

Version of platform to use. Default: 5.

Outputs

platform_fact

Platform fact output.

Support