As you can see, in the optimizer, two trades were opened with a 0.5 lot size. That is $5 per pip for this pair. Both trades had a ten pip profit, so we should have a profit of around $50. In this case, it was 56k. Also, more than 2 trades should've been opened. It could be my strategy code, but it was working correctly during backtest.