I don't know, maybe you have negative value for the input parameter?
I tried this: https://fxdreema.com/shared/gc1FxAv8e
And here is the result: http://prntscr.com/9y04wq
As you can see, both of my trades were modified (at 25 pips, because its shorter for testing) and their SL set to 10 pips positive, and then they were closed by that SL, so their profit was 10 dollars.
