Anyone who wanted to see charts without missing bars - here =) - page 7

 
komposter:
Will you check?
Who's the question for?
 
to the developers of MT4.
 
Renat:
Who's the question?
To you, of course =)
MT is messing up the off-line schedule - who else can figure it out? ;)


solandr:
I hope you got the hint? ;o)))
Digits is not Spread.
If the spread changes all the time, that's fine. But if Digits was changing it would be funny =)))

I specifically checked, the digits come back correct. And it is written correct.
It is then zeroed out by MT.
Hence the whole numbers on the price scale...
 
komposter писал (а):

I specifically checked, the digits come back correct. And it's recorded correctly.
It is then zeroed out by MT.
Hence the whole numbers on the price scale...


Is it possible at the moment of updating the file with new ticks from EA to overwrite the digits value to the correct one as well (fight with the terminal)? Or it will not do anything, because the terminal reads digits value once from the file when it is opened and does not check it on every tick, like spread?
 
solandr:
Is it possible that when the file is updated with new ticks from the EA, the digits value is also overwritten with the correct value (fight with the terminal)? Or will it do nothing since the terminal reads the digits value once from the file when opening it and does not check it again on every tick, like the spread?
It doesn't work.
I tried restarting with expert running.

I still need to fix the error...
 
komposter писал (а):
The error still needs to be fixed...

OK, we'll wait. Maybe the developers can do it in the long run?
 
Maybe I misunderstood, but you (and not MT4 in-house) use your script to write *.HST files yourself and completely, then see error messages and ask us questions?
 
Renat:
Maybe I misunderstood, but you (and not MT4 in-house) use your script to write *.HST files yourself and completely, then see error messages and ask us questions?
No, you got it right =)
I use my script to create *.hst-file, open it offline and see the results.
And then (without script's participation and my intervention) file is spontaneously overwritten.

No third-party programs working with this file have been detected.
Here is the log from FileMonitor:
22:45:02    terminal.exe:2132    OPEN                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Options: Open  Access: Read    
22:45:02    terminal.exe:2132    OPEN                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Options: Open  Access: 00120189    
22:45:02    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Attributes: A    
22:45:02    terminal.exe:2132    SET INFORMATION     D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    FileBasicInformation    
22:45:02    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    BUFFER OVERFLOW    FileFsVolumeInformation    
22:45:02    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    FileInternalInformation    
22:45:02    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Length: 161364    
22:45:02    terminal.exe:2132    CLOSE               D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS        
22:45:02    terminal.exe:2132    OPEN                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Options: Open  Access: 00000180    
22:45:02    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    FileBasicInformation    
22:45:02    terminal.exe:2132    CLOSE               D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS        
22:45:02    terminal.exe:2132    READ                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Offset: 0 Length: 4096    
22:45:02    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Length: 161364    
22:45:02    terminal.exe:2132    READ                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Offset: 148 Length: 160768    
22:45:02    terminal.exe:2132    READ                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Offset: 160916 Length: 512    
22:45:02    terminal.exe:2132    CLOSE               D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS        
22:45:04    terminal.exe:2132    OPEN                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Options: Open  Access: Read    
22:45:04    terminal.exe:2132    OPEN                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Options: Open  Access: 00120189    
22:45:04    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Attributes: A    
22:45:04    terminal.exe:2132    SET INFORMATION     D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    FileBasicInformation    
22:45:04    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    BUFFER OVERFLOW    FileFsVolumeInformation    
22:45:04    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    FileInternalInformation    
22:45:04    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Length: 161364    
22:45:04    terminal.exe:2132    CLOSE               D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS        
22:45:04    terminal.exe:2132    OPEN                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Options: Open  Access: 00000180    
22:45:04    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    FileBasicInformation    
22:45:04    terminal.exe:2132    CLOSE               D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS        
22:45:04    terminal.exe:2132    READ                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Offset: 0 Length: 4096    
22:45:04    terminal.exe:2132    QUERY INFORMATION   D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Length: 161364    
22:45:04    terminal.exe:2132    READ                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Offset: 148 Length: 160768    
22:45:04    terminal.exe:2132    READ                D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS    Offset: 160916 Length: 512    
22:45:04    terminal.exe:2132    CLOSE               D:_ForexMetaTrader 4 WorkhistoryForex-ServerWS_EURUSD1440.hst    SUCCESS
The log is made after all the manipulations I mentioned (in one of the previous posts). I.e. at the moment of MT opening.
There is no Expert Advisor on the chart. No program works with this file.
 
Here are more files just in case:
WS_EURUSD1440_byExpert.hst - created by Expert Advisor (we only connect the Expert Advisor, do not open the chart)
WS_EURUSD1440_byMT.hst - corrected MT (at the moment of opening the off-line chart).
Files:
ws.zip  121 kb
 
And here is the last version of the Expert that was used to make the file WS_EURUSD1440_byExpert.hst
Files: