in my Expert I would need to update positions' comments when certain conditions are met.
All I could find so far is that I can get these comment by using PositionGetString(POSITION_COMMENT). What I would need is the reverse, like PositionSetString(POSITION_COMMENT).
I have been experimenting with something like this:
mrequest.order = PositionGetInteger(POSITION_IDENTIFIER);
mrequest.action = TRADE_ACTION_MODIFY;
mrequest.comment = "MY COMMENT";
But this doesn't help, I get error code 4756.
How can I update a position's comment?