So, if I understand this right...

Your script enters at the beginning of each bar and exits via the stoploss or takeprofit. Without TICKS, the stoplosses are systematically triggered earlier than takeprofits which explains why there are more loosing trades than winning trades.

Well spotted!