Table of Contents
- Module: AiDataTaskRunner
- Step: AiDataTaskRunner\AddTask
- Step: AiDataTaskRunner\RunAllTask
- Step: AiDataTaskRunner\CleanAllTask
- Step: AiDataTaskRunner\SaveTaskInFile
- Step: AiDataTaskRunner\LoadTaskInFile
- Step: AiDataTaskRunner\SaveConfigInFile
- Step: AiDataTaskRunner\LoadConfigInFile
- Step: AiDataTaskRunner\LoadConfigInPlace
- Notes
Module: AiDataTaskRunner
Steps for interacting with the AiDataTaskRunner panel via chart events.
All steps in this module communicate with the panel using
EventChartCustomand wait for its response before continuing.
Step: AiDataTaskRunner\AddTask
Adds a task to the panel table.
Structure
- name: "AddTask"
module: "AiDataTaskRunner"
with:
symbol: "EURUSD"
timeframe: PERIOD_H1
start_date: "2024.01.01"
end_date: "2024.12.31"
symbol_folder: "EURUSD"
label: "mi_label"
label_id: 0
set_file: "config.set"
Parameters
| Parameter | Required | Description |
|---|---|---|
symbol |
Yes | Task symbol |
timeframe |
Yes | Timeframe. E.g: PERIOD_H1 |
start_date |
Yes | Start date. Format: YYYY.MM.DD |
end_date |
Yes | End date. Format: YYYY.MM.DD |
symbol_folder |
No | Symbol folder. Default: value of symbol |
label |
No | Task label |
label_id |
No | Numeric label ID. Default: 0 |
set_file |
No | EA configuration .set file |
Step: AiDataTaskRunner\RunAllTask
Runs all tasks in the panel table.
Structure
- name: "RunAllTask"
module: "AiDataTaskRunner"
with:
strict: true
Parameters
| Parameter | Required | Description |
|---|---|---|
strict |
No | If true the step fails when the panel reports an error running a task, otherwise it does not continue. Default: true |
ms_pool |
Yes | Millisecond interval at which the bot will query the status of tasks sent to the panel |
Step: AiDataTaskRunner\CleanAllTask
Clears all tasks from the panel table.
Structure
- name: "CleanAllTask"
module: "AiDataTaskRunner"
Step: AiDataTaskRunner\SaveTaskInFile
Saves the table tasks to a file.
Structure
- name: "SaveTaskInFile"
module: "AiDataTaskRunner"
with:
file_name: "tasks.csv"
only_no_proccesed: false
Parameters
| Parameter | Required | Description |
|---|---|---|
file_name |
Yes | Destination file name |
only_no_proccesed |
No | If true only saves unprocessed tasks. Default: false |
Step: AiDataTaskRunner\LoadTaskInFile
Loads tasks from a file into the panel table.
Structure
- name: "LoadTaskInFile"
module: "AiDataTaskRunner"
with:
file_name: "tasks.csv"
Parameters
| Parameter | Required | Description |
|---|---|---|
file_name |
Yes | File name to load |
Step: AiDataTaskRunner\SaveConfigInFile
Saves the current panel configuration to a file.
Structure
- name: "SaveConfigInFile"
module: "AiDataTaskRunner"
with:
file_name: "config.txt"
Parameters
| Parameter | Required | Description |
|---|---|---|
file_name |
Yes | File name where the configuration is saved |
Step: AiDataTaskRunner\LoadConfigInFile
Loads the panel configuration from a previously saved file.
Structure
- name: "LoadConfigInFile"
module: "AiDataTaskRunner"
with:
file_name: "config.txt"
Parameters
| Parameter | Required | Description |
|---|---|---|
file_name |
Yes | Configuration file name to load |
Step: AiDataTaskRunner\LoadConfigInPlace
Writes a configuration file on the fly with the values specified in the YAML and then loads it into the panel. Unlike LoadConfigInFile it does not require a pre-existing file.
Structure
- name: "LoadConfigInPlace"
module: "AiDataTaskRunner"
with:
file_name: "config_temp.txt"
progress_csv: "progress.csv"
main_folder: "MyFolder\\" # must include \\
expert_path: "MyEA.ex5"
file_name_json_config: "config.json"
Parameters
| Parameter | Required | Description |
|---|---|---|
file_name |
Yes | Name of the temporary file to generate |
progress_csv |
Yes | Path of the progress CSV file |
main_folder |
Yes | Main project folder |
expert_path |
Yes | EA path relative to MQL5\Experts\ |
file_name_json_config |
Yes | Name of the EA JSON configuration file |
Notes
When working with files in LoadConfig\SaveConfig\LoadTask\SaveTask the full path must be specified, relative to X\Files\, where X is defined before running the workflow. It can be MQL5 if working with the terminal Files folder or Common if working with the common folder. To know which one is being used you can use the system variable "aidata.common_flag" which stores true or false, or the variable "aidata.common_flag_val" which stores "" or "FILE_COMMON"
AiTaskRunnerByLeo
QuickStart
Panel
General
Data generation
Feature Editor
Training
AI
Utils
Workflows
Config
External Scripts