MQL5持仓情况下如何实时获取手续费?

 

请问,MT5在持仓的情况下,怎么获取平台手续费?MT5没有OrderCommission()这个函数吗?历史交易记录里获取手续费不实用啊!

Excuse me, how do I get platform service fees when holding positions on MT5? Is there no OrderCommission() function in MT5?

 
Gang Ye:

请问,MT5在持仓的情况下,怎么获取平台手续费?MT5没有OrderCommission()这个函数吗?历史交易记录里获取手续费不实用啊!

Excuse me, how do I get platform service fees when holding positions on MT5? Is there no OrderCommission() function in MT5?

你还是mt4的思维模式,MT5没有OrderCommission()这个函数 ,因为mt5的入场(in)和出场(out),以及佣金计算机制和mt4完全不一样,mt5只有平仓后,才可以在历史交易记录里面用“DEAL_COMMISSION”获取“双向全部佣金”!

 
Gang Ye:

请问,MT5在持仓的情况下,怎么获取平台手续费?MT5没有OrderCommission()这个函数吗?历史交易记录里获取手续费不实用啊!

Excuse me, how do I get platform service fees when holding positions on MT5? Is there no OrderCommission() function in MT5?

这个目前无法实现。因为券商可以每笔结算(一般外汇),日结、月结(期货),所以需要咨询券商。

 
Gang Ye:

请问,MT5在持仓的情况下,怎么获取平台手续费?MT5没有OrderCommission()这个函数吗?历史交易记录里获取手续费不实用啊!

Excuse me, how do I get platform service fees when holding positions on MT5? Is there no OrderCommission() function in MT5?

原来mql官方里有这个函数PositionGetDouble(POSITION_COMMISSION)来获取当前持仓的手续费, 不知道后来什么原因又取消了这个函数, 所以即使你写出这个函数也不会报错,即使这个函数已经不存在.

mql5涉及面太广, 很多我们普通的交易员根本用不上, 也不知道官方是怎么想的, 非要整出这么麻烦的语言, 不象mql4那样简单易上手