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 identifierTesteMinimo.mq5164"
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 |//+------------------------------------------------------------------+intOnInit()
{
// 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);
}
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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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?