//+------------------------------------------------------------------+ //| 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 //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ // Tf manager #include // Auto delete #include // Estado de la cuenta #include // Lib de noticias #include // Central back #include // Us event codes #include // Estrategias #include // Try #include // Gestion de riesgo #include //--- TSN::CNewBarManager g_new_bar_manager; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class CGlobalInit { private: static bool init; public: //--- Incializacion global CGlobalInit(void) { if(init) return; //--- CBasicEvents::Init(); //--- CAutoCleaner::AddFunction(TSN::CAccountStatus_Deinit); // Account status CAutoCleaner::AddFunction(CBasicEvents::Deinit); // Basic events //--- init = true; } //--- Deinicializacion global ~CGlobalInit(void) {} }; //+------------------------------------------------------------------+ bool CGlobalInit::init = false; //+------------------------------------------------------------------+ CGlobalInit g_global_instance; //+------------------------------------------------------------------+ #endif // GLOBAL_MQH