Also added a function to get a list of files by mask, including subfolders (similar to this one).
#include <fxsaber\MultiTester\MTTester.mqh> // https://www.mql5.com/ru/code/26132voidOnStart()
{
string FileNames[];
// Get all log files in the terminal folder. Supports long paths (> MAX_PATH).MTTESTER::GetFileNames(FileNames, TerminalInfoString(TERMINAL_DATA_PATH) + "\\*.log");
ArrayPrint(FileNames);
}
I often encountered limitations on file path length in standard functions. Judging by the implementation, possible addition of support for files with long paths to standard functions looks simple from MQ side.
Added additional information to the file names and their contents. Otherwise it was difficult to understand when and what was launched (I do a lot of automatic calculations).
Now you can copy these data to the clipboard (CTRL+C) and transfer them to the Settings tab (CTRL+V) of the Tester. After that run a single pass of the alarm combination.
parameter convertion type 'short[260]' to 'ushort[] &' is not allowed MTTester.mqh 135 39
int user32::GetClassNameW(long,ushort&[],int) winuser.mqh 1414 37
'ReadFile' - no one of the overloads can be applied to the function call MTTester.mqh 1283 21
in template 'int MTTESTER::FileLoad(const string,T&[])' specified with [T=short] MTTester.mqh 1270 14
see template instantiation 'MTTESTER::FileLoad<short>' MTTester.mqh 1569 23
could be one of 3 function(s) MTTester.mqh 1283 21
int kernel32::ReadFile(long,ushort&[],uint,uint&,OVERLAPPED&) fileapi.mqh 124 8
int kernel32::ReadFile(long,ushort&[],uint,uint&,long) fileapi.mqh 125 8
int kernel32::ReadFile(long,uchar&[],uint,uint&,long) MTTester.mqh 60 7
2 errors, 0 warnings 2 0
текущий MTTester.mqh не проходит проверку при компиляции себя же самого в 5100
On 2 different computers on this update - MultiTester
Forum on trading, automated trading systems and testing trading strategies
New version of MetaTrader 5 build 3081: Improvements in MQL5 services and updated design
fxsaber, 2021.10.15 12:33 pm
The script shows an incomprehensible limitation on the length of file names that are created without problems in the file manager.
Please solve the length of the file name. In practice you should use here.
The following functions allow to work with long paths (more than MAX_PATH).
The example above will work if you replace the standard function.
Also added a function to get a list of files by mask, including subfolders (similar to this one).
I often encountered limitations on file path length in standard functions. Judging by the implementation, possible addition of support for files with long paths to standard functions looks simple from MQ side.
Added functionality.
Added additional information to the file names and their contents. Otherwise it was difficult to understand when and what was launched (I do a lot of automatic calculations).
Now you can copy these data to the clipboard (CTRL+C) and transfer them to the Settings tab (CTRL+V) of the Tester. After that run a single pass of the alarm combination.
When debugging code, I often use log clearing before active prints to avoid confusion with the previous session.
The function is called TerminalJournalClear, but it does not clear the log, only the Expert tab does.
The function is called TerminalJournalClear, but it does not clear the journal, only the Expert tab does.
Is there a terminological difficulty? Clearing the Experts tab - there are scripts. The logs tab - I haven't thought of it.
Hi, can anyone confirm if the MTTester.mqh library has become obsolete with new new 5100 build push June 6, 2025 ?
Forum on trading, automated trading systems and testing trading strategies
Libraries: MultiTester
fxsaber, 2022.09.01 10:26 AM
Terminal LiveUpdate management.Service to disallow updates.
On 2 different computers on this update - MultiTester
Updated: 2025.06.06 08:04