You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
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";
OrderSend(mrequest, mresult).
But this doesn't help, I get error code 4756.
How can I update a position's comment?
Best regards
Huckey