Errors, bugs, questions - page 428

 
Im_hungry:

Tried to record the same in the same tool but in mt4

i transferred bin file to mt5 tester folder - none of the files

it doesn't open - error 5004, in MT5 it still opens something.


i implemented data logging in MT4 indicator (all the data is written correctly) as follows:

But reading in mt5 by an EA remains the same:

Is it possible for an EA in mt5 to open a file created in mt4 ?

If I remember correctly, mt4 saves files in Ansish encoding.
 
Please answer question #124661 in the servicedesk.
 
sergey1294:
If memory serves me correctly, mt4 encrypts files in Ansish encoding.

I don't know about the encoding, but everything about mt4 file recording is here

https://docs.mql4.com/ru/files/filewritedouble

And mt5 file was opening 30 mb at first, then 900kb. - he didn't want to open

now it does, but not more than 40 mb. i asked here - the code is organized

I've got it right, no read or write rules changed, but the result is different

it may or may not!

FileWriteDouble - Документация на MQL4
  • docs.mql4.com
FileWriteDouble - Документация на MQL4
 
sergey1294:
Maybe, but you should also specify encoding, if memory serves me correctly, mt4 saves files in Ansish encoding.
There are no strings in the file, so the encoding does not matter.
 
Im_hungry:
Yes, of course - it sees the file but does not want to read it because of the opening error 5004

For the last time:

  1. Open file in OnInit.
  2. Read file in OnTick.
  3. Close the file in OnDeinit.

Otherwise on every tick: "Opened purse - got purse. Opened my purse, took out my purse. Open purse - get purse..."

 
uncleVic:

For the last time:

  1. Open file in OnInit.
  2. Read file in OnTick.
  3. Close the file in OnDeinit.

Otherwise, on every tick: "I opened the purse - I took out the purse. Opened her purse - took out her purse. Opened my purse - got my purse..."

Flawless - reads everything without any problems Thank you all for your assistance!

//---

I am writing the time and buffer values in mt4 to a file,

then I transferred the file to mt5 (tester folder where it should be)

and read it with the Expert Advisor - everything works!

/---

I have described it all here at the end of the article for those who are interested:

https://www.mql5.com/ru/forum/3224

 

Problem with MetaEditor (build 468, but it happened once before). After accidentally pressing a random key combination, all panels, including toolbar, disappeared, and after adding them manually when opening the editor again, they no longer appear.

No solution to this problem could be found in the settings and help.
.

 
DV2010:

Problem with MetaEditor (build 468, but it happened once before). After accidentally pressing a random key combination, all panels, including toolbar, disappeared, and after adding them manually when opening the editor again, they no longer appear.

I couldn't find a solution to this problem in the settings and help.

There was a similar one back in the three hundred something, I just deleted this file

C:\Program Files\MetaTrader 5\Configuration/terminal.ini

and then all the settings were reset, and that was it.

- After that all the settings were reset and that's it.

Not happened! Good luck!

 
DV2010:

Problem with MetaEditor (build 468, but it happened once before). After accidentally pressing a random key combination, all panels, including toolbar, disappeared, and after adding them manually when opening the editor again, they no longer appear.

No solution to this problem could be found in the settings and help.
.

You need to press the magic F12 button.
 

joo:
Нужно нажать волшебную кнопочку F12

Listen, you seem to be a real wizard! : )

Thank you! :)

Reason: