脚本: VR 订单历史 MT5 轻量版

 

VR 订单历史 MT5 轻量版:

VR 订单历史 MT5 轻量版 - 用于以 CSV 格式下载交易历史的脚本程序。

作者: Vladimir Pastushak

 

原来 CSV 格式与 MT4 类似格式不同。那么第五版的意义何在?

 
fxsaber:

原来 CSV 格式与 MT4 类似格式不同。那第五版的意义何在?


什么意思?

 

代码中最吸引人的是这一行。

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

弗拉基米尔,你从未见过处理字符串的函数吗?

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

代码中最吸引人的是这一行。

弗拉基米尔,你从未见过处理字符串的函数吗?


但用户会很清楚 )))))

 
Vladimir Pastushak:

但用户会很清楚 )))))

是的,是的...
 
Vladimir Pastushak:

什么意思?

MT5 历史记录的分析方法与 MT4 历史记录截然不同。几乎没有人使用 MT5 报告,并将 MT5 历史记录上传到 CSV,与最初提供的一模一样。

 
fxsaber:

MT5 历史记录的分析方式与 MT4 历史记录截然不同。几乎没有人使用 MT5 报告,也没有人将 MT5 历史记录上传到 CSV,这与最初给出的报告完全相同。


我们的目标是按头寸细分历史记录,清楚地看到头寸的开始和结束,以及哪些交易产生了头寸....。

另一个目标是在 Excel 中进行额外分析,包括手数、订单类型 等....。

许多人不知道如何编程,但擅长使用 Excel,因此脚本可以帮助他们...

对于 4k 6k 下载,因此订单的一切都很清楚...

 
Vladimir Pastushak:

我们的目标是获得按仓位细分的历史记录,清楚地看到 仓位的起点和终点,以及在哪个仓位进行了哪些交易...

但情况并非如此。

 
fxsaber:

这就是不存在的原因。


不是的,是有的,只是版主要求我去掉分隔符。


但在设置的最后一个参数中,您可以指定任何分隔符...

 
Vladimir Pastushak:

怎么不是呢?

问题是如何分析有补仓的头寸(屏幕下方红色矩形)?在 MT4 变量中,您可以分析头寸有效期内 的最佳/最差平仓线。那么 MT5 仓位呢?

很明显,仓位补仓只与净额结算曲线有关。但在 MT5 中,对冲中的部分平仓也会造成同样的问题。

PositionID 是一个不便分析的参数(与 MT4 相比)。