CTrade::PositionClosePartial() does not keep the position comment

 

I believe this is more a comment than an issue.

.\MQL5\Include\Trade\Trade.mqh

line 601, function PositionClosePartial()

when calling it, the function does not keep the current position comment.

I just added the line below before the return:

m_request.comment=PositionGetString(POSITION_COMMENT);

Just keeping in mind to add it if there is a newer "Trade.mqh" version launched.

Thank you.

 
Felipe Augusto Torres Maggico:

I believe this is more a comment than an issue.

.\MQL5\Include\Trade\Trade.mqh

line 601, function PositionClosePartial()

when calling it, the function does not keep the current position comment.

I just added the line below before the return:

Just keeping in mind to add it if there is a newer "Trade.mqh" version launched.

Thank you.

Thank you -- excellent -- it worked!

Bogdan

Reason: