Comparaison des fichiers tst1.txt et TST2.TXT ***** tst1.txt int tim_min; void OnTimer() { t_web ++; if (! t_web || t_web >= 180) { ResetLastError(); // bool copy_FTP2() { int res=1, rs2, timeout=5000, ts, cpt=0; char post[], result[]; #ifdef o_FH2 string URL="http://www.ecomclub.com/transfert_VPS/FH2/", #endif ***** TST2.TXT int tim_min; void OnTimer() { t_web ++; int res=1, rs2, timeout=5000, ts, cpt=0; char post[], result[]; #ifdef o_FH2 string URL="http://www.ecomclub.com/transfert_VPS/FH2/", #endif ***** ***** tst1.txt #ifdef o_FH4 string URL="http://www.ecomclub.com/transfert_VPS/FH4/", #endif ***** TST2.TXT #ifdef o_FH4 string URL="http://www.ecomclub.com/transfert_VPS/FH4/", #endif ***** ***** tst1.txt #ifdef o_FH5 string URL="http://www.ecomclub.com/transfert_VPS/FH5/", #endif ***** TST2.TXT #ifdef o_FH5 string URL="http://www.ecomclub.com/transfert_VPS/FH5/", #endif ***** ***** tst1.txt #ifdef o_FH6 string URL="http://www.ecomclub.com/transfert_VPS/FH6/", #endif ***** TST2.TXT #ifdef o_FH6 string URL="http://www.ecomclub.com/transfert_VPS/FH6/", #endif ***** ***** tst1.txt #ifdef o_FH7 string URL="http://www.ecomclub.com/transfert_VPS/FH7/", #endif ***** TST2.TXT #ifdef o_FH7 string URL="http://www.ecomclub.com/transfert_VPS/FH7/", #endif ***** ***** tst1.txt #ifdef o_FH9 string URL="http://www.ecomclub.com/transfert_VPS/FH9/", #endif filename, headers, temp; //, terminal=arr_Terms[Terminal], admin=arr_Admins[Terminal]; if (FileIsExist(".\\Telegram\\Del_Trade_All.bat", 0)) FileMove(".\\Telegram\\Del_Trade_All.bat", 0, ".\\Telegram\\Del_Tra ***** TST2.TXT #ifdef o_FH9 string URL="http://www.ecomclub.com/transfert_VPS/FH9/", #endif filename, headers, temp; //, terminal=arr_Terms[Terminal], admin=arr_Admins[Terminal]; if (FileIsExist("macro_time_chk-b.log", FILE_COMMON)) { FileDelete("macro_time_chk-b.log", FILE_COMMON); URL = "http://www.ecomclub.com/web_send_mail.php?vps=" + vps + EnumToString(Terminal) + (b? "&b=1": "") + "&src=" + EnumT oString(mgc_num); res = WebRequest("GET", URL, NULL, NULL, timeout, post, 0, result, headers); } if (! t_web || t_web >= 120) { ResetLastError(); // bool copy_FTP2() { if (FileIsExist(".\\Telegram\\Del_Trade_All.bat", 0)) FileMove(".\\Telegram\\Del_Trade_All.bat", 0, ".\\Telegram\\Del_Tra ***** ***** tst1.txt ON); cpt ++; } Sleep(PAUSE); int handle=FileOpen(mac_chk2, FILE_COMMON|FILE_TXT|FILE_READ); if (handle != INVALID_HANDLE) { temp = FileReadString(handle); FileClose(handle); ***** TST2.TXT ON); cpt ++; } Sleep(PAUSE * 2); int handle=FileOpen(mac_chk2, FILE_COMMON|FILE_TXT|FILE_READ); if (handle != INVALID_HANDLE) { temp = FileReadString(handle); FileClose(handle); ***** ***** tst1.txt (StrToInteger(StringSubstr(TimeToStr(TimeCurrent(), TIME_MINUTES), 0, 2)) > 22 || ! ml || tst? temp: ""); if (! ml) Alert("******* ATTENTION : ERREUR de Suivi macros ! (" + IntegerToString(TimeLocal() - StrToTime(temp)) + ") - DayOfW eek() = " + DayOfWeek() + " *******"); res = WebRequest("GET", URL, NULL, NULL, timeout, post, 0, result, headers); FileDelete(mac_chk2, FILE ***** TST2.TXT (StrToInteger(StringSubstr(TimeToStr(TimeCurrent(), TIME_MINUTES), 0, 2)) > 22 || ! ml || tst? temp: ""); if (! ml) { Alert("******* ATTENTION : ERREUR de Suivi macros ! (" + IntegerToString(TimeLocal() - StrToTime(temp)) + ") - DayO fWeek() = " + DayOfWeek() + " *******"); if (FileIsExist("macro_time_chk.log", FILE_COMMON)) FileCopy("macro_time_chk.log", FILE_COMMON, "macro_time_chk.txt", FILE_C OMMON); } res = WebRequest("GET", URL, NULL, NULL, timeout, post, 0, result, headers); FileDelete(mac_chk2, FILE ***** ***** tst1.txt case 0 : if (Symb == "Silver") Symb = "XAGUSD"; if (Symb == "GOLD" || Symb == "Gold") Symb = "XAUUSD"; Symb += "p"; if (Symb == "XBRUSDp") Symb = "BRENT" ; if (Symb=="XTIUSDp" || Symb=="USOILp") if (LM > 0.0) Symb = fabs((MarketInfo("WTI",MODE_BID)+MarketInfo("WTI",MODE_ASK))/ 2 - LM) > fabs((MarketInfo("BRENT",MODE_BID)+MarketInfo("BRENT",MODE_ASK))/2 - LM) ? "BRENT" : "WTI"; else Symb = "WTI"; if (StringSubstr(Symb, 0, 3) == "GNP") Symb = "GBP" + StringSubstr(Symb, 3); if (Symb == "US30p") { Symb = "US30"; lot = 0.01; } break; ***** TST2.TXT case 0 : if (Symb == "Silver") Symb = "XAGUSD"; if (Symb == "GOLD" || Symb == "Gold") Symb = "XAUUSD"; Symb += _p; if (Symb == "XBRUSD"+_p) Symb = "BREN T"; if (Symb=="XTIUSD"+_p || Symb=="USOIL"+_p) if (LM > 0.0) Symb = fabs((MarketInfo("WTI",MODE_BID)+MarketInfo("WTI",MODE_AS K))/2 - LM) > fabs((MarketInfo("BRENT",MODE_BID)+MarketInfo("BRENT",MODE_ASK))/2 - LM) ? "BRENT" : "WTI"; else Symb = "WTI"; if (StringSubstr(Symb, 0, 3) == "GNP") Symb = "GBP" + StringSubstr(Symb, 3); if (Symb == "US30"+_p) { Symb = "US30 "; lot = 0.01; } break; ***** ***** tst1.txt ) && mgc_num == OrderMagicNumber()); } Print("******* " + s_comp + " - " + IntegerToString(i_comp) + " - " + port + " *******"); _p = i_comp ? "" : "p"; #ifdef o_FH4 if ((Symb == "DJ30" || Symb == "US30" || Symb == "NAS100" || Symb == "XAUUSD"+_p || Symb == "BTCUSD") && Acco ***** TST2.TXT ) && mgc_num == OrderMagicNumber()); } Print("******* " + s_comp + " - " + IntegerToString(i_comp) + " - " + port + " *******");// _p = i_comp ? "" : "p"; #ifdef o_FH4 if ((Symb == "DJ30" || Symb == "US30" || Symb == "NAS100" || Symb == "XAUUSD"+_p || Symb == "BTCUSD") && Acco *****