Comparaison des fichiers tst1.txt et TST2.TXT
***** tst1.txt

string err_mess="",name1="Last-Order",name2,name3;       bool cp_ok,cp_ok_;
double vPoint=0.0,vAsk=0.0,vBid=0.0,LastOrder,LastSize,LastFile;        int err_flag, c_run;

//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+

void OnStart()
{  // prévoir de remettre cette ligne dans le OnInit()
   if (! GlobalVariableCheck(name1)) GlobalVariableSet(name1, 0);
//Print("*** trace 1 - "+DoubleToStr(c_run,0)+" ***");
   SuperIndicatorParser parser;
***** TST2.TXT

string err_mess="",name1="Last-Order",name2="Last-Size",name3="Last-File";
bool cp_ok,cp_ok_;         int c_run,err_flag;
double vPoint=0.0,vAsk=0.0,vBid=0.0,LastOrder,LastSize,LastFile;

int OnInit() { EventSetTimer(5);
   if (! GlobalVariableCheck(name1)) GlobalVariableSet(name1, 0);

   err_flag = 1;     c_run = 2;
//   if (! GlobalVariableCheck("c_run")) 
   GlobalVariableSet("c_run", c_run);
   return(0); }

void OnTick()
{  if (! (TimeCurrent() % 5)) { c_run = 2;      GlobalVariableSet("c_run", c_run); }
   else  c_run = int (GlobalVariableGet("c_run"));
   if (c_run < 2) {
      if (c_run) { Alert ("FIN du 'SuperIndicatorParser_EA' ! **");
         c_run = 0;   GlobalVariableSet("c_run", c_run); }
      return; }
   else { c_run = 0;    GlobalVariableSet("c_run", c_run);

//Print("*** trace 1 - "+IntegerToString(c_run)+" ***");
   SuperIndicatorParser parser;
*****

***** tst1.txt
+"-"+DoubleToStr(s.price_sl,5)+"-"+DoubleToStr(s.price_tp,5)+"*";
           copy_file (temp);  Print (temp);
//         if(ticket < 0){
***** TST2.TXT
+"-"+DoubleToStr(s.price_sl,5)+"-"+DoubleToStr(s.price_tp,5)+"*";
           copy_file(temp);      Print (temp);
//         if(ticket < 0){
*****

***** tst1.txt

//Print("*** trace 2 - "+DoubleToStr(c_run,0)+" ***");
      int i=0, handle, k;     double dTime;
***** TST2.TXT

//Print("*** trace 2 - "+IntegerToString(c_run)+" ***");
      int i=0, handle, k;     double dTime;
*****

***** tst1.txt
         StringReplace(temp, "\t", " ");
         string tmp = StringSubstr(temp, StringFind(temp, "("), StringFind(temp, ")") + 1 - StringFind(temp, "("));
         StringReplace(tmp, " ", "_");
***** TST2.TXT
         StringReplace(temp, "\t", " ");
         string tmp=StringSubstr(temp, StringFind(temp, "("), StringFind(temp, ")") + 1 - StringFind(temp, "(")), tmp2=tmp;
         StringReplace(tmp, " ", "_");
*****

***** tst1.txt
         StringReplace(tmp, "_", " ");    StringReplace(tmp, ")", "");     StringReplace(tmp, "(", "");
         StringSplit(tmp, ',', part2s);
         if (parts[2] == "ATS" && parts[3] == "Assistant") {
***** TST2.TXT
         StringReplace(tmp, "_", " ");    StringReplace(tmp, ")", "");     StringReplace(tmp, "(", "");
         StringReplace(tmp, ", ", ",");      StringSplit(tmp, ',', part2s);
         if (parts[2] == "ATS" && parts[3] == "Assistant") {
*****

***** tst1.txt
               temp = "* SuperIndicatorParser - "+IntegerToString(time)+" - "+TimeToStr(time, TIME_DATE|TIME_MINUTES)+" - "+par
ts[1]+" - "+parts[10]+" - "+parts[11]+" - "+parts[13]+" *";
               Print (temp);        copy_file (temp);
               GlobalVariableSet(name1, dTime);
         }  }    i ++; }
      FileClose(handle);
   }
   else Print("* SuperIndicatorParser Error - "+IntegerToString(_LastError)+" - "+IntegerToString(GetLastError())+" - "+err_mes
***** TST2.TXT
               temp = "* SuperIndicatorParser - "+IntegerToString(time)+" - "+TimeToStr(time, TIME_DATE|TIME_MINUTES)+" - "+par
ts[1]+" - "+parts[10]+" - "+parts[11]+" - "+tmp2+" *";
               Print(temp);         copy_file(temp);  /*
(GRADE A, SHORT, GBPAUD, M30, Trigger: MN EXP) MARKET SNAPSHOT: TS: L2, DEV:0, TF1:H4, TF2:D1, TF3:W1, Time:2023.07.25 01:00:00
, Price:1.90307
(GRADE A, LONG, CADJPY, M30, Trigger: MJ EXP STK) MARKET SNAPSHOT: TS: L0, DEV:0, TF1:H4, TF2:D1, TF3:W1, Time:2023.07.25 02:00
:00, Price:107.482
(GRADE A, LONG, CADJPY, M30, Trigger: LL) MARKET SNAPSHOT: TS: S0, DEV:11.7, TF1:H4, TF2:D1, TF3:W1, Time:2023.07.25 05:00:00, 
Price:107.311
+  GRADE A - Trigger: MJ EXP  +  GRADE A - Trigger: EXP IND
(MJ BOX EXP, CADJPY, M30) MARKET SNAPSHOT: TS: L0, DEV:0, TF1:H4, TF2:D1, TF3:W1, Time:2023.07.25 02:00:00, Price:107.482
(MN BOX EXP, AUDNZD, M30) MARKET SNAPSHOT: TS: S6, DEV:0, TF1:H4, TF2:D1, TF3:W1, Time:2023.07.25 03:00:00, Price:1.08603
(Buy LL, CADJPY, M30) MARKET SNAPSHOT: TS: S0, DEV:11.8, TF1:H4, TF2:D1, TF3:W1, Time:2023.07.25 05:00:00, Price:107.310
(Sell LL, CADJPY, M30) MARKET SNAPSHOT: TS: S0, DEV:0, TF1:H4, TF2:D1, TF3:W1, Time:2023.07.25 08:00:00, Price:107.486  +  EXP 
IND
part2s[0] = "GRADE A/B";     part2s[1] = "SHORT/LONG";   part2s[2] = "GBPAUD";   part2s[3] = "M30";   part2s[4] = "Trigger: ---
";
part2s[0] = "MJ BOX EXP";    part2s[1] = "GBPAUD";       part2s[2] = "M30"; */
               
               GlobalVariableSet(name1, dTime);
               c_run = 0;     GlobalVariableSet("c_run", c_run);
         }  }    i ++; }
      FileClose(handle); }
   else Print("* SuperIndicatorParser Error - "+IntegerToString(_LastError)+" - "+IntegerToString(GetLastError())+" - "+err_mes
*****

***** tst1.txt
s+" *");
}

void copy_file (string tmp) { int handle;
   string filename="EA-write-file_Orders.txt";
***** TST2.TXT
s+" *");
 } }

void OnTimer() { c_run = 2;      GlobalVariableSet("c_run", c_run); }

void OnDeinit(const int reason) { EventKillTimer();
   c_run = 2;   GlobalVariableSet("c_run", c_run);
Alert ("FIN du 'SuperIndicatorParser_EA' ! ** "+IntegerToString(reason));
   return; }

void copy_file(string tmp) { int handle;
   string filename="EA-write-file_Orders.txt";
*****

