Round value to the nearest multiple of step (the instrument tick size). Used for snapping dragged order/SL/TP prices to a valid tick. Returns value unchanged when step <= 0.
value
step
step <= 0
Round
valueto the nearest multiple ofstep(the instrument tick size). Used for snapping dragged order/SL/TP prices to a valid tick. Returnsvalueunchanged whenstep <= 0.