How to add comment on close positions? - page 2

Alain Verleyen
40769
Alain Verleyen  

This could interest you, in next MT5 update :

Terminal: In the hedging mode, the ticket of a closed position is now displayed for the orders and deals in the trading history. This makes it easier to find related opening and closing operations.

List of changes in MetaTrader 5 Client Terminal builds
List of changes in MetaTrader 5 Client Terminal builds
  • www.mql5.com
See the "MQL5 Reference / Standard constants, enumerations and structures / Named constants / Other constants " section.
arcull
166
arcull  
Alain Verleyen:

This could interest you, in next MT5 update :

Thanks Alain, is this update already out, what version is it? Please post the link, thanks.
Alain Verleyen
40769
Alain Verleyen  
arcull:
Thanks Alain, is this update already out, what version is it? Please post the link, thanks.
I posted the link, can't you see it in previous post ?
arcull
166
arcull  
Yeah, sorry it looks like a banner ;) I overlooked it. Cool, the version is released tomorrow, thanks Alain
siljo
225
siljo  
arcull:
Hi Nguyen and sorry for late reply. This is exactly what I need, I've tested and it works ok. However I will extend the CTrade class and reimplement the PositionClose methods, rather then changing the class definition directly. Thank you once again for your help. I owe you a beer ;)

How can overwrite this code?

bool CTrade::PositionClose(const ulong ticket,const ulong deviation)


?


p.s.

This solution is OK but I get compiler error:

'PositionClose' - function already defined and has body bolbands_joze_115h35.mq5 2866 14