주시
1
0
포크
이미 LLmRegiteryByLeo을(를) 포크했습니다
0
원본 프로젝트 nique_372/LLmRegiteryByLeo
LLmRegiteryByLeo/RegisteryService.mq5
Nique_372 35e526c4fc
2026-07-17 15:03:00 -05:00

70 라인
2.8 KiB
MQL5

//+------------------------------------------------------------------+
//| RegisteryService.mq5 |
//| Copyright 2026, Niquel Mendoza. |
//| https://www.mql5.com/ |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, Niquel Mendoza."
#property link "https://www.mql5.com/"
#property version "1.00"
#property strict
//+------------------------------------------------------------------+
//| Include |
//+------------------------------------------------------------------+
#include "Src\\Main.mqh"
//+------------------------------------------------------------------+
//| Inputs |
//+------------------------------------------------------------------+
input string InpFolderNameBase = "LLmRegistery\\";
input bool InpFilesInCommonFolder = true;
input int InpHorasUpdate = 8;
input int InpMaxIntentos = 5;
input int InpSegundosTry = 100;
input int InpTimeoutWebReqeuestMs = 60000;
input ENUM_VERBOSE_LOG_LEVEL InpLogLevel = VERBOSE_LOG_LEVEL_ALL;
//+------------------------------------------------------------------+
//| Global variables |
//+------------------------------------------------------------------+
TSN::CLlmRegistery g_llm_registery;
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//---
g_llm_registery.AddLogFlags(InpLogLevel);
if(!g_llm_registery.Init(InpFolderNameBase, InpFilesInCommonFolder, InpHorasUpdate,
InpMaxIntentos, InpSegundosTry, InpTimeoutWebReqeuestMs))
{
return INIT_FAILED;
}
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//--- Vacio
}
//+------------------------------------------------------------------+
//| Timer function |
//+------------------------------------------------------------------+
void OnTimer()
{
//---
g_llm_registery.OnTimerEvent();
}
//+------------------------------------------------------------------+