|
GTrade.MoveStopLossWithComment()
Moves all StopLoss of open positions with a certain comment on a certain symbol.
The StopLoss is only moved if:
1. the given value differs from the existing value of the StopLoss
2. the StopLoss moves in the direction of profit, not in the opposite direction
int GTrade.MoveStopLossWithComment( |
Parameters
stopLoss
[in] New desired value of the StopLoss.
comment
[in] The comment that the open position must contain to be moved.
symbol
[in] The symbol on which to change.
Return value
Returns the number of moved StopLoss.
Note
The function call can take place without further verification.
Example:
//--- Include Glib classes |
See also
GTrade.MoveStopLoss, GTrade.OpenStopLoss, GTrade.OpenStopLossWithComment