Script to Refresh Experts Log File in Real Time

MQL4 Asesores Expertos Sripts

Trabajo finalizado

Plazo de ejecución 15 días

Tarea técnica

Can someone write me a script that will force the experts log file to refresh in real time?

I've written an EA that reads in and uses some information from the experts log file, so I need it to refresh in real time. However, the log file is only updated in intervals throughout the day I think, when the terminal is closed, or when you right click on the log in the terminal and click open. 

I have some code (below) that uses WinAPI functions to do something similar with the "Journal" file. It performs the "right click and open" process on the journal repeatedly to keep it updated.

So there are two possible solutions to my problem:

1. Modify the code below for me, to perform the process on the "Experts Log" file instead - I have been unable to do this myself as I don't have any experience with WinAPI and don't know the equivalent code to the "33101" to reference the Experts Log.

2. Produce a better solution for refreshing the log file - opening and closing the file folder every few ticks is far from ideal. So you may know a better or more efficient solution to solve my problem. (I will pay more for a better and more efficient solution if more time is involved).

Please contact me to discuss further...

#include <WinUser32.mqh>

#import "user32.dll"
  int GetAncestor(int hWnd, int gaFlags);
#import
//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
void start()
{
  int hwnd = GetAncestor(WindowHandle(Symbol(),Period()),2); // find the Terminal handle no.
  PostMessageW(hwnd,WM_COMMAND ,33101,0); // open the folder contains the log files
  //-----
  while (FindIfDirOpened() == 0) // check if the folder opened
      {
      Sleep(100);
      FindIfDirOpened();
      }
   PostMessageW(FindIfDirOpened(), WM_CLOSE, 0, 0); //close the folder
}

int FindIfDirOpened()
   {
   string log = "logs";
   string i;
   int handle = FindWindowW(i ,log);
   return(handle);
   }

 

Han respondido

1
Desarrollador 1
Evaluación
(13)
Proyectos
24
42%
Arbitraje
3
33% / 0%
Caducado
4
17%
Libre
2
Desarrollador 2
Evaluación
(25)
Proyectos
50
28%
Arbitraje
47
9% / 72%
Caducado
23
46%
Libre
3
Desarrollador 3
Evaluación
(561)
Proyectos
841
73%
Arbitraje
15
53% / 13%
Caducado
193
23%
Trabaja
Solicitudes similares
I already have an Expert Advisor coded in MQL4, but it refuses to trade anything other than its hard-coded symbol. I want that filter gone so the same strategy can fire on any instrument—forex, indices, metals such as XAUUSD—across any timeframe. The trading logic, money management and inputs must stay exactly as they are; I simply need universal symbol support. After the MT4 file is fixed and compiles cleanly, I
Description: Gildepak is a purchasing cooperative for packaging materials. We need a program to calculate and fairly distribute the annual bonus (received from preferred suppliers) among our member companies (partners and members). The program should work with a set of predefined tables and data flows, and it must be able to import and export Excel files. Main Tables: Member Companies Company ID Company Name Partner
Hi I am looking for a coder who can write me a code which picks up a pdf from my desktop and has it run through Claude with a pre-defined prompt. After that the result should be posted in a chat. This process needs to happen twice a day with different pdfs each day. In a stage 2 the bot should be fetching that pdf automatically from my inbox and run through the mentioend process. Work output needs to be a script that
Forex Signal Indicator 50 - 100 USD
I’m looking for an experienced Forex signal copier/trader who can copy trades from multiple signal groups into my live account during the London and New York trading sessions. I currently have access to 4 different Forex signal groups. The first step will be to analyze and test which group provides the best results and aligns with our trading goals. Once we identify the most effective group, you will copy the signals
S-ONE ROBOT – MT5 EA Developer Brief 1. Trading Pairs & Timeframes Pair Timeframe Strategy Type Gold (XAU/USD) M15–H1 Scalping + Trend-following + Attacking EUR/USD H1–H4 Swing trading + Attacking Separate configurable parameters per pair (risk %, max trades, SL/TP, indicators). Timeframe Logic: Lower timeframe → precise entries (M15 for Gold, H1 for EUR/USD) Higher timeframe → trend confirmation (M30/H1 for Gold, H4
Fractal Multi-Timeframe Strategy (H4→M15→M2) — Developer Spec Abstract This document specifies a fractal trading workflow leveraging H4 for regime identification, M15 for Area of Value (AoV) location, and M2 for execution using CHoCH-based triggers. The goal is a robust, developer-friendly specification that minimizes ambiguity and matches the operational style already discussed (Liquidity → Order Block →
عنوان المشروع: مطلوب مبرمج MQL4 لإنشاء أداة إدارة لأوامر إيقاف الشراء وأوامر إيقاف البيع وصف المشروع: أبحث عن مبرمج MQL4 خبير لتطوير مستشار خبير (EA) متخصص يدير أوامر إيقاف الشراء وأوامر إيقاف البيع فقط. المواصفات الفنية: 1. الوظائف الأساسية: · يجب على المستشار الخبير مراقبة أوامر إيقاف الشراء وأوامر إيقاف البيع المعلقة الموجودة على الرسم البياني. · بمجرد تشغيل أمر معلق وتحوله إلى أمر سوق مفتوح، يجب على المستشار
Hello, good day, I want to get a MT5 Trade Copier to use on different prop firms. I am not sure of all the settings that would be required for this, I would like someone who knows how this work to help me figure it out. I need for it to have the LOT SIZE where I can multiply, divide, add, subtract and to be the same as the signal account. This is to help with brokers that are using more than 1 digit at the end. I am
Tk capital bot 50+ USD
Trading bot for trading and forex trading and other markets trade with low accounts risk management and accuracy trade in a multiple account and enter a trade when it's necessary
Ethereum EA 30 - 35 USD
I am looking for an Expert Advisor (EA) that performs well on Ethereum. Ideally it should be an HFT-style EA; a swing trading EA is acceptable. I require the full MQL5 source code — the EA must be written entirely in MQL5 (no external languages such as Python). Performance target: minimum 70% win rate with a 1:1 risk:reward. Input variables required: - Stop Levels: Stop Loss (SL) and Take Profit (TP) - Trailing stop

Información sobre el proyecto

Presupuesto
10 - 30 USD
Para el ejecutor
9 - 27 USD
Plazo límite de ejecución
de 1 a 5 día(s)