Questions from Beginners MQL5 MT5 MetaTrader 5 - page 637

 
-Aleks-:
And the data in the second line is exactly the same as the first?

No, not exactly. It's as the format indicated. How to get these - don't know.

Also interested in the main question, how to get them back to readable form!, and where the minus from the line comes from =)

 
Vitaly Muzichenko:

No, not exactly. It's as the format indicated. How to get these - don't know.

Also interested in the main question, how to get them back to a readable form!, and where the minus from the line =)

Honestly, I don't understand the question. There's no raw data.

Are you sure there are no minus signs in the original string? In any case, the code could be splitting the string into substrings and converting them into numbers, and then processing these numbers and forming a new string.

 
-Aleks-:

To be honest, I don't understand the question. There is no raw data.

Are you sure there are no minus signs in the original string? In any case, the code may be splitting the string into substring and converting them into numbers, and then processing these numbers and forming a new string.

Here's a string that is converted into numbers:

Account: 941873 Name: Vitaly Currency: USD Leverage: 1:500 2016 October 5, 22:30

 
Vitaly Muzichenko:

Can someone please advise who has encountered and knows how to get from this line:

29301441,1475681547,0,0.01,EURUSD,1.1207,0.0000,0.0000,1475690944,1.1213,0.00,0.00,0.60,,13134545

like this:

-118,120,-39,52,-58,-76,62,-66,-49,-97,-38,-86,-125,-52,-70,-96,89,-23,13,-91,111,74,-79,16,65,127,116,-76,99,5,27,48,42,44,55,-94,84,-72,-63,115,26,18,-47,-46,5,-55,32,68,114,-20,46,-7,79,7,82,78,-91,41,82,-114,121,112,-64,-106,35,-10,24,-128,58,-81,-69,92,34,79,64,-97,52,-95,127,-18,-46,104,104,85,56,93,8,100,14,-52,-88,-38,-28,-76,-49,35,-74,27,120,74,53,124,-104,-59,-1,41,-127,-99,103,104,-38,2,47,-93,68,35,-15,44,123,47,78,-117,15,-114,-46,-98,-108,-26,

Thank you!

No way, they are completely different lines

first line ticket,opentime,buy,lot,symbol,openprice,sl,tp,closetime,closeprice, etc.

the second line can be anything

if the first string is a binary, try reading the data types

 
pako:

No way, they are completely different strings

first line ticket,opentime,buy,lot,symbol,openprice,sl,tp,closetime,closeprice, etc.

the second line can be anything

if the first string is a binary, try reading the data types

Tried it, no luck, may be going the wrong way(

Still interested in how to get it back to readable form.

 
Vitaly Muzichenko:

Tried it, to no avail, maybe I'm going the wrong way(

Still interested in how to get it back to readable form.


In order to get it back, you need to know how it was written.

the second line is most likely a binary, and onlyFileWriteInteger is written

 
pako:

To go back, you need to know how it was written

That's the problem, I can't even understand what was written, there are no letters, only digits, and those with a minus sign through one. And the whole thing turns into such a thing on the terminal side, but on the server side it is already converted to a readable form.
 
Vitaly Muzichenko:
Well, that's the problem, I can't even understand what was written, there are no letters, only digits, and those with a minus sign through one. And all this stuff turns into such a thing on the terminal side, but on the server side it's already converted to readable form.

Numbers can be letters.

Can't you look it up on the server? How and what reads it?

 
pako:

Numbers can be letters.

Can't you look it up on the server? How and what reads it?

No, it won't, I've been trying it for a week, to no avail. What encryption method is used, that's the question. I know that on the terminal side some absurd dll is used, or not quite absurd).

So what it's all about: need to make a test visualization, but now have changed the algorithm for sending data. This worked for a while, now it does not work, I would like to restore performance.

 
Vitaly Muzichenko:

Here is the line that has been converted into numbers:

Account: 941873 Name: Vitaly Currency: USD Leverage: 1:500 2016 October 5, 22:30

Maybe it only converts?

941873 Vitaly USD 1:500 2016 October 5, 22:30

Anyway, encryption is used there...

By the way, the 128 digits are not for nothing...