|
GTrade.MoveStopLoss()
Moves all StopLoss of the open positions 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.MoveStopLoss( |
Parameters
stopLoss
[in] New desired value of the StopLoss.
symbol
[in] The symbol on which the changes are to be made.
Return Value
Returns the number of moved StopLoss.
Note
The function call can take place without further examination.
Beispiel:
//--- Include Glib classes |
See also
GTrade.MoveStopLossWithComment, GTrade.OpenStopLoss, GTrade.OpenStopLossWithComment