//+------------------------------------------------------------------+ //| BenAi.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 "AiCode.mqh" #resource "TestOptim.set" as const string g_setfile //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart() { //--- CSetFileParser setfile; setfile.AssignString(g_setfile); Sleep(250); ulong a = GetMicrosecondCount(); for(int i = 0; i < 6000; i++) { setfile.Parse(); } ulong b = GetMicrosecondCount() - a; Print("time: ", b); Print("Count: ", setfile.Count()); Print("StringLen(g_setfile): ", StringLen(g_setfile)); /* 2026.07.07 18:04:51.718 BenAi (XAUUSD,M1) time: 1503973 2026.07.07 18:04:51.718 BenAi (XAUUSD,M1) Count: 1713 2026.07.07 18:04:51.718 BenAi (XAUUSD,M1) StringLen(g_setfile): 102450 */ } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+