Juan, I have moved your question to forum instead of the library! 🙂
You have been trapped into the 0 bar phenomena of ProBacktest. This is something already discussed a lot in different topics. Because the backtest engine don’t look inside bar, but only once, the takeprofit are always tested before the stoploss, so if these 2 levels are met within the same bar, you always win.
This Probacktest behaviour has been modified (understand “fixed”) into the new PRT version 10.3 with the tick/tick option. I made a video about it: Tick by tick backtest