2026-06-26 12:44:41 -05:00 | | | //+------------------------------------------------------------------+
|
| | | //| EA.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\\PerfectHash.mqh"
|
| | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| Inputs |
|
| | | //+------------------------------------------------------------------+
|
2026-06-28 16:04:15 -05:00 | | | input string InpYamlFileName = "C:\\Users\\USER\\AppData\\Roaming\\MetaQuotes\\Terminal\\D0E8209F77C8CF37AD8BF550E51FF075\\MQL5\\Shared Projects\\MQLArticles\\Utils\\EnumsStr\\config.yaml"; // Yaml file ubication
|
2026-06-27 12:37:19 -05:00 | | | input ENUM_VERBOSE_LOG_LEVEL InpLogLevel = VERBOSE_LOG_LEVEL_ALL; // Log level
|
2026-06-26 12:44:41 -05:00 | | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| Expert initialization function |
|
| | | //+------------------------------------------------------------------+
|
| | | int OnInit()
|
| | | {
|
| | | //---
|
| | | TSN::CPerfectHashGenerator ph;
|
2026-06-27 12:37:19 -05:00 | | | ph.AddLogFlags(InpLogLevel);
|
2026-06-26 22:13:05 -05:00 | | |
|
| | | //---
|
2026-06-28 16:04:15 -05:00 | | | if(!ph.Init(InpYamlFileName))
|
2026-06-26 12:44:41 -05:00 | | | return INIT_PARAMETERS_INCORRECT;
|
| | |
|
| | | if(!ph.RunAlg())
|
| | | return INIT_FAILED;
|
| | |
|
| | | //---
|
| | | return(2); // exito
|
| | | }
|
| | | //+------------------------------------------------------------------+
|
| | | //| Expert deinitialization function |
|
| | | //+------------------------------------------------------------------+
|
| | | void OnDeinit(const int reason)
|
| | | {
|
| | | //---
|
| | | }
|
| | | //+------------------------------------------------------------------+
|
| | | //| Expert tick function |
|
| | | //+------------------------------------------------------------------+
|
| | | void OnTick()
|
| | | {
|
| | | //---
|
| | | }
|
| | | //+------------------------------------------------------------------+
|