MqlJournalInfo error - Please help

 

I am building with the help of Gemini a code that reads the journal and checks for specific messages in order to enter a trade. For some reason the "MqlJournalInfo" function is not working on 3 different PCs that I tried, this is the code below and the error I get is "'MqlJournalInfo' - undeclared identifier TesteMinimo.mq5 16 4"

Can someone help me see the light here?

//+------------------------------------------------------------------+
//|                                                  TesteMinimo.mq5 |
//|                  Teste Mínimo para Verificar MqlJournalInfo      |
//+------------------------------------------------------------------+

#property copyright "Teste de Diagnóstico Definitivo"
#property version   "1.00"

//+------------------------------------------------------------------+
//| Função de inicialização do Expert                                  |
//+------------------------------------------------------------------+

int OnInit()
{
   // O único propósito deste EA é tentar declarar uma variável MqlJournalInfo.
   // Se esta linha falhar ao compilar, o problema é 100% no seu ambiente MetaTrader.
   
   MqlJournalInfo teste_da_estrutura[];
   Print("Teste Mínimo: A estrutura MqlJournalInfo foi declarada com sucesso.");
   return(INIT_SUCCEEDED);
}
 
hi try to update your mt5 software
 
Samuel Bedin #:
hi try to update your mt5 software

Already updated. Also tried on a "virgin" PC that never had MT5 before.

 
It seems there is no such type as MqlJournalInfo, and I couldn't find any information about it through Google search. It might have been randomly generated by AI.