MqlCIByLeo/Src/Tester/Defines.mqh

62 lines
2.8 KiB
MQL5
Raw Permalink Normal View History

2026-03-09 16:06:27 -05:00
//+------------------------------------------------------------------+
//| Defines.mqh |
//| Copyright 2026, MetaQuotes Ltd. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, MetaQuotes Ltd."
#property link "https://www.mql5.com"
#property strict
#ifndef MQLCYBYLEO_SRC_TESTER_DEFINES_MQH
#define MQLCYBYLEO_SRC_TESTER_DEFINES_MQH
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
2026-03-14 16:44:24 -05:00
#include <TSN\\MQLArticles\\Utils\\ExtraFunctions.mqh>
2026-03-14 17:08:07 -05:00
#include <TSN\\ExtraCodes\\Func.mqh>
2026-03-14 16:44:24 -05:00
#include <TSN\\ExtraCodes\\Expert.mqh>
2026-03-09 16:06:27 -05:00
#include "..\\..\\..\\fast_json\\fast_json.mqh"
#include "Def.mqh"
2026-03-11 19:02:17 -05:00
2026-03-09 16:06:27 -05:00
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
//---
struct TestExpertCi
{
string expert_mq5_path; // Para compilar (MQ5)
string expert_ex5_name; // Para correr (EX5)
2026-03-11 17:12:08 -05:00
string symbol; // Simbolo
ENUM_TIMEFRAMES timeframe; // Timeframe
MqlParam params[]; // Parametros (como minimo debera tener un tamaño de 2)
2026-03-11 19:02:04 -05:00
__forceinline void ResizeParams(int size) { ArrayResize(params, size); }
2026-03-09 16:06:27 -05:00
};
//---
struct TestingCiLogs
{
string label; // Etiqueta
string log_txt; // Log
long res; // Resultado
};
//---
struct MqlCiConfigCompiler
{
2026-03-09 18:03:33 -05:00
string filename_compiled_log; // Nombre del archivo donde se pondra en caso de fallo de compilacion los logs
2026-03-09 16:46:30 -05:00
// Nombre del archivo donde estara el resultado de la compilacion 0 \ 1.. si es 0 = flase (Se ubicara en mql5\\files\\...)(RUTA RELATIVA)
2026-03-09 16:06:27 -05:00
// El py lo debera de leeer y marcar como "invalido" el action
string file_name_res; // Nombre archivo res (bin) (Se ybuicarab eb mql5\\files\\...) (RUTA RELATIVA)
string file_name_out_json; // Nombre del archivo json (Se ubicara en mql5\\files\\...) (RUTA RELATIVA)
string file_name_read_py; // Archivo de "check para py" este lo leera y sabra uqe ya es hora de emepzar los check (Se ubicara en mql5\\files\\...) (RUTA RELATIVA)
uint max_timeout_ms_compile; // Maximo tiempo de espera para compilar ms
2026-03-11 17:12:08 -05:00
int max_timeout_esecution_per_test; // Maximo tiempo de espera por test
2026-03-09 16:06:27 -05:00
};
2026-03-11 17:12:08 -05:00
2026-03-09 16:06:27 -05:00
//+------------------------------------------------------------------+
#endif // MQLCYBYLEO_SRC_TESTER_DEFINES_MQH