2026-03-11 18:43:38 -05:00 | | | //+------------------------------------------------------------------+
|
| | | //| TestCustomers.mq5 |
|
| | | //| 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 version "1.00"
|
| | | #property strict
|
| | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
| | | #include "Main.mqh"
|
| | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
2026-04-26 15:48:56 -05:00 | | | input long InpCharId = 0;
|
| | | input string InpApiKey = "";
|
2026-03-11 19:21:16 -05:00 | | | input string InpSoftwareId = "ODA4X3EF";
|
2026-04-26 15:48:56 -05:00 | | | input string InpUserId = "Ir1vSmDzvzT8esYE8uMtJDCYGkQ2";
|
2026-03-11 19:21:16 -05:00 | | | input string InpTelegramUser = "trade_system_nique";
|
2026-03-11 18:43:38 -05:00 | | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| Expert initialization function |
|
| | | //+------------------------------------------------------------------+
|
| | | int OnInit()
|
| | | {
|
| | | //---
|
2026-06-03 12:24:19 -05:00 | | | TSN::CTbpCustomers tbp;
|
2026-03-11 18:43:38 -05:00 | | | tbp.AddLogFlags(LOG_ALL);
|
| | | tbp.ApyKey(InpApiKey);
|
| | | tbp.SoftwareId(InpSoftwareId);
|
2026-03-11 19:21:16 -05:00 | | | tbp.AdditionalData(new CAditionalDataAccountId(), true);
|
2026-03-11 18:43:38 -05:00 | | |
|
| | | //---
|
2026-07-21 08:08:21 -05:00 | | | TSN::CiTestUtil util;
|
2026-03-11 18:43:38 -05:00 | | | util.AddLogFlags(LOG_ALL);
|
2026-03-11 19:21:16 -05:00 | | | util.TestSize(3);
|
2026-03-11 18:43:38 -05:00 | | | util.SetTestPtr(0, new CTestGetCustomersSoftware(&tbp));
|
| | | util.SetTestPtr(1, new CTestUserHasSoftware(&tbp, InpUserId));
|
| | | util.SetTestPtr(2, new CTestUserHasSoftwareNoAdditional(&tbp, InpUserId));
|
| | |
|
| | | //---
|
2026-03-11 19:21:16 -05:00 | | | util.Init(InpCharId, 70, __FILE__, 95.0);
|
2026-03-11 18:43:38 -05:00 | | | util.RunAllTestAndSend();
|
| | |
|
| | | //---
|
| | | return CIBYLEO_ONINIT_FINISH;
|
| | | }
|
| | | //+------------------------------------------------------------------+
|
| | | //| Expert deinitialization function |
|
| | | //+------------------------------------------------------------------+
|
| | | void OnDeinit(const int reason)
|
| | | {
|
| | | //---
|
| | | }
|
| | | //+------------------------------------------------------------------+
|
| | | //| Expert tick function |
|
| | | //+------------------------------------------------------------------+
|
| | | void OnTick()
|
| | | {
|
| | | //---
|
| | | }
|
| | | //+------------------------------------------------------------------+
|