Scripts: VR Orders History MT5 Lite

 

VR Orders History MT5 Lite:

VR Orders History MT5 Lite - a script for downloading trading history in the CSV format.

Author: Vladimir Pastushak

 

So it turns out that the CSV format is different from its MT4 analogue. What is the point of the fifth version then?

 
fxsaber:

So it turns out that the CSV format is different from its MT4 analogue. What is the point of the fifth version then ?


What do you mean ?

 

The most fascinating thing in the code is this line.

FileWrite(file_handle,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine,SeparatorLine);

Vladimir, have you never met any functions that work with strings?

StringInit(SeparatorLine, 46, StringGetCharacter(SeparatorLine, 0));
 
Alexey Viktorov:

The most fascinating thing in the code is this line.

Vladimir, have you never met any functions for working with strings?


But it will be clear to the user )))))

 
Vladimir Pastushak:

But it will be clear to the user )))))

Yeah, yeah...
 
Vladimir Pastushak:

What do you mean ?

MT5-history is very different from MT4-history in the way it is analysed. Almost no one uses MT5 reports and uploads MT5-history to CSV exactly as it is originally given.

 
fxsaber:

MT5-history is very different from MT4-history in the way it is analysed. Almost no one uses MT5 reports and uploading MT5-history to CSV exactly as it was originally given.


The goal was to get the history broken down by positions, to clearly see the beginning and end of a position and which trades made a position....

Another goal, additional analysis in Excel, lots, order types and so on....

Many do not know how to program, but are good at working with Excel, so the script to help them ...

For 4k 6k downloads, so everything with orders is clear there...

 
Vladimir Pastushak:

The goal was to get the history broken down by position, to clearly see the start and end of a position and which trades made which position...

This is not the case.

 
fxsaber:

That's what's not there.


It's not, it is, it's just that the moderators asked me to remove the separators.


but in the last parameter of the settings you can specify any separator...

 
Vladimir Pastushak:

How is it not, it is

The question is how to analyse positions that have fills (bottom red rectangle on the screen)? Here you have in MT4 variant an analysis of the best/worst closing bar during the life of the position. What about MT5 positions?

It is clear that position fills are only related to the Netting curve. But also partial closes in Hedge create the same problem in MT5.

PositionID is an inconvenient (compared to MT4) parameter to analyse.