//+------------------------------------------------------------------+ //| EAHealthDump.mq5 | //| Copyright 2026, Allan Niñal | //| https://www.allanninal.dev/mql5 | //+------------------------------------------------------------------+ //| Test tool (read-only). Feeds the synthetic deal lists that | //| tests/check_core.py wrote (Common\Files\ehtest\deals_.csv) | //| through HealthCore.mqh and writes the statistics per magic to | //| Common\Files\ehtest\stats_.csv for the Python comparison. | //+------------------------------------------------------------------+ // SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0 (see LICENSE) #property copyright "Copyright 2026, Allan Niñal " #property version "1.00" #property script_show_inputs #include input int InpFiles = 6; // deals_0 .. deals_ input long InpDay = 0; // day start (seconds) input string InpSuffix = ""; // added to the stats file names input bool InpCloseWhenDone = false; int Entry(const string s) { return(s=="in" ? EH_IN : (s=="out" ? EH_OUT : (s=="inout" ? EH_INOUT : EH_OUTBY))); } void WriteStats(const EHBook &b,const string name) { int f=FileOpen("ehtest\\"+name,FILE_WRITE|FILE_TXT|FILE_ANSI|FILE_COMMON); FileWriteString(f,"magic,n,w,l,deals,gp,gl,net,curve,peak,maxdd,today,last\n"); for(int i=0; i