2026-03-21 06:15:32 -05:00 | | | //+------------------------------------------------------------------+
|
| | | //| Global.mqh |
|
| | | //| Copyright 2025, Niquel Mendoza. |
|
| | | //| https://www.mql5.com/es/users/nique_372 |
|
| | | //+------------------------------------------------------------------+
|
| | | #property copyright "Copyright 2025, Niquel Mendoza."
|
| | | #property link "https://www.mql5.com/es/users/nique_372"
|
| | | #property strict
|
| | |
|
| | | #ifndef GLOBAL_MQH
|
| | | #define GLOBAL_MQH
|
| | |
|
2026-03-21 10:15:21 -05:00 | | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
| | | //---
|
2026-03-21 11:41:29 -05:00 | | | // Archivo Global.mqh
|
2026-03-21 06:15:32 -05:00 | | | // Mencionar que como tal no operaremos
|
| | | // Esto es mas un archivos de ayuda para evirar crear otro parser (sin que este cree features)
|
| | | //.. dado que estamos usando el "compilador" de aidatagenbyleo
|
| | | // Entonces este trae todas sus depenecias como la libreira ict\news por loq ue tenemos que setearlas para uqe no nos den errores
|
| | | // Igualmente no consumiran casi nada
|
| | |
|
2026-04-30 08:33:01 -05:00 | | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
| | | // Enum reg primero
|
2026-07-07 13:38:29 -05:00 | | | //#include <TSN\\AiDataGen\\GenericData\\EnumReg.mqh>
|
2026-04-30 08:33:01 -05:00 | | |
|
2026-03-21 06:15:32 -05:00 | | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
| | | #include <TSN\\MQLArticles\\Utils\\TFManager.mqh>
|
| | |
|
| | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
| | | //--- Incluiremos las librerias de eventos principales y el autocleaner
|
| | | #include <TSN\\MQLArticles\\Utils\\FA\\AutoDelete.mqh>
|
2026-07-15 20:05:24 -05:00 | | |
|
| | | //---
|
| | | CNewBarManager g_new_bar_manager;
|
| | | #define TSN_ICTLIBRARY_INSTANCE_BAR_MANAGER g_new_bar_manager
|
| | |
|
| | |
|
| | | //---
|
| | | #include <TSN\\AiDataGen\\GenericData\\AllFeatures.mqh>
|
2026-07-07 13:38:29 -05:00 | | | #include <TSN\\AiDataGen\\GenericData\\Complex.mqh>
|
2026-03-21 06:15:32 -05:00 | | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
| | | class CGlobalInit
|
| | | {
|
| | | private:
|
| | | static bool init;
|
| | |
|
| | | public:
|
| | | //--- Incializacion global
|
| | | CGlobalInit(void)
|
| | | {
|
| | | if(init)
|
| | | return;
|
| | |
|
2026-04-22 07:00:43 -05:00 | | | //---
|
2026-07-07 13:38:29 -05:00 | | | CAutoCleaner::AddFunction(TSN::CAiDataGenFeatureFactory::Deinit);
|
2026-04-22 07:00:43 -05:00 | | |
|
2026-03-21 06:15:32 -05:00 | | | //---
|
| | | init = true;
|
| | | }
|
| | | //--- Deinicializacion global
|
| | | ~CGlobalInit(void) {}
|
| | | };
|
2026-03-21 11:41:29 -05:00 | | |
|
2026-03-21 06:15:32 -05:00 | | | //+------------------------------------------------------------------+
|
| | | bool CGlobalInit::init = false;
|
| | |
|
| | | //+------------------------------------------------------------------+
|
| | | CGlobalInit g_global_instance;
|
| | | //+------------------------------------------------------------------+
|
| | | #endif // GLOBAL_MQH
|