70 라인
2.8 KiB
MQL5
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();
|
|
}
|
|
//+------------------------------------------------------------------+
|