Libraries: Print massive information (PrintXYZ) from the terminal

 

Print massive information (PrintXYZ) from the terminal:

PrintXYZ() library to print massive information from the terminal.

Author: amrali

 

Update 17 February 2025 - version 1.30

Added function PrintTesterStatistics(). Output more information from the existing functions.

 

Update 20 February 2025 - version 1.40

Added function PrintOpenCL() - Prints the OpenCL device properties to the Experts tab.

 

Update 21 February 2025 - version 1.50

Added function-like macro PrintExpr() - Prints a stringified expression along with its value and type.

 

Update 22 February 2025 - version 1.52

Printing enumeration parameter in the function information output.

 

Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий

Bybit MT5

fxsaber, 2025.05.29 07:12

#property script_show_inputs

input bool inFull = false;

#include <PrintXYZ.mqh> // https://www.mql5.com/en/code/56055

void OnStart()
{
  PrintAccount();
  
  int Count = 1;
  
  for (int i = 0; i < SymbolsTotal(true); i++)
  {
    const string Symb = SymbolName(i, true);
    
    if (SymbolInfoInteger(Symb, SYMBOL_TIME) > TimeCurrent() - 3600)
    {
      Print(IntegerToString(Count++, 3, '0') + ": " + Symb + " - " + SymbolInfoString(Symb, SYMBOL_DESCRIPTION));
  
      if (inFull)
        PrintSymbol(Symb);
    }
  }
}

Thanks!

 
fxsaber #:

Thanks!

Great example 👍