session-levels/tests/mt4/SessionLevelsDump.mq4
Allan Niñal Allan Niñal 5a6e5b9b72 Session Levels: free MT5 and MT4 indicator source, Python reference, tests and README
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 18:04:52 +08:00
34 Zeilen
1,7 KiB
MQL4
//+------------------------------------------------------------------+
//| SessionLevelsDump.mq4 |
//| Copyright 2026, Allan Niñal |
//| https://www.allanninal.dev/mql5 |
//+------------------------------------------------------------------+
//| Test EA (not shipped): dumps the 7 MT4 Session Levels buffers and|
//| checks the signal buffer for repainting in the Strategy Tester, |
//| via Dump4.mqh. The indicator runs over the whole history, so the |
//| final values are those of the running instance. |
//| Run it in the MT4 Strategy Tester (open prices) once per symbol,|
//| timeframe and input set in tests/mt4/configs.tsv, then run |
//| tests/check_parity.py <folder with the CSVs> --mt4 |
//+------------------------------------------------------------------+
// SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0 (see LICENSE)
#property strict
#define DUMP4_BUFFERS "0,1,2,3,4,5,6"
#define DUMP4_PROBE "6"
input string InpLondonStart = "03:00";
input string InpLondonEnd = "12:00";
input string InpNYStart = "08:00";
input string InpNYEnd = "17:00";
double IndValue(const int buf,const int shift)
{
return(iCustom(NULL,0,"SessionLevels\\SessionLevels",5,true,"19:00","04:00",16748574,
true,InpLondonStart,InpLondonEnd,42495,true,InpNYStart,InpNYEnd,7451452,
true,true,true,true,true,55295,14053594,12632256,true,1,1,0,
true,true,true,true,false,false,"alert.wav",false,false,buf,shift));
}
#include <IndTest4/Dump4.mqh>
//+------------------------------------------------------------------+