Backtesting using Ansible #3
kenorb
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To backtest EA using Ansible (the complete solution is still in progress), you can use ansible-role-mt-runner Ansible role to run the test.
To run roles, you need to install Ansible (
pip install ansible
) and have some basic understanding how does it work.The mt-runner role depends on the following other roles (depending on the operating system):
Install Wine
In below example, you can find out how to install Wine (Linux only) using provided Ansible role (this assumes you've already Ansible installed).
Install Wine role via Ansible Galaxy (this will install role in
~/.ansible/roles
):Create the following playbook file (customize as needed), e.g.
wine.yml
:To play it on localhost, navigate to repository directory and run:
To run on remote, create Ansible hosts file and run on
hosts: all
(check Ansible docs pages for more details).Run test
Install MetaTrader role by:
To run backtest, create the following playbook (
ea-tester.yml
):Then run as:
Check the demo at https://colab.research.google.com/drive/1ybsqnVANuiJBdnza47e9VRIYFK4E1xKZ?usp=sharing
Beta Was this translation helpful? Give feedback.
All reactions