Script to Refresh Experts Log File in Real Time

MQL4 Experts Scripts

Job finished

Execution time 15 days

Specification

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);
   }

 

Responded

1
Developer 1
Rating
(13)
Projects
24
42%
Arbitration
3
33% / 0%
Overdue
4
17%
Free
2
Developer 2
Rating
(25)
Projects
50
28%
Arbitration
47
9% / 72%
Overdue
23
46%
Free
3
Developer 3
Rating
(548)
Projects
825
73%
Arbitration
15
53% / 13%
Overdue
193
23%
Working
Similar orders
Modify an existing Python bot to trade bollinger bands, with iqoption api Currently the bot strategy is wrong, I am limited in my knowledge here and hope to fix this Hope to work with more experience people out there in relation to iqoption api and python
I need an EA to automate Tradingview alerts on MT4 using webhook alerts. The bridge/connector should be python based GUI. Required features at a minimum Mapping Tradingview alert formats to MT4 Automating market, limit and stop orders with entry price, stop loss, multiple TPs and trailing stop Lot sizing - fixed/% of balance/fixed amount breakeven, partial close and trailing stop Mapping pair name prefixes/suffixes
hi guys, I have a script, that I have been struggling to work. most of the work is done, just final touch of an expert is needed. The script Is using Fibonacci and Pivot standard in its base. look forward to hear from an expert! Best regards Sina
Hello all! I'm currently developing a members area web app which users have access to our services, educational content, auto calculators etc... i want to take it to the next level and integrate a system where at a click of a button, a system auto run a strategy test, finds a setfile based on inputs they enter and saves it as a setfile. there will be a fair few inputs but after filling it out, the system will know
I need help with my indicator which is Wave. I'd like to have some changes made to my base code Also I need cooperation for later projects... Thanks alot in advance
Hello, I am looking for someone that can develop for me a trading bot, that can trade on Crash 500 and 1000, and also on Boom 500 and 1000. The bot must buy on Crash 500 and 1000 and sell on Boom 500 and 1000. The indicator we use is the Awesome Oscillator. The CRASH 500/1000 we scalp it by buying. We only place our ENTRY that is to BUY when the Awesome Oscillator changes from VALUE DOWN to VALUE UP and by changing I
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance service. I have read the Rules of using the Freelance service and accept them. I agree

Project information

Budget
10 - 30 USD
For the developer
9 - 27 USD
Deadline
from 1 to 5 day(s)