@jzfusion I just tested the project you posted above. I think the EA behaves as you configured it. Look at your Check trades count block.
0_1575429582484_5543094e-a859-4c3f-8de8-bf6e5544445f-image.png
This becomes true (orange dot) If there are 0-4 trades open. Asuming you have 4 trades already open, it passes the true condition another time (as 4 trades are less than 5 trades) and opens the 5th trade as one of both conditions are always true and will open a trade.
Does that makes sense?
So change it to < 4 and you'll only have 4 trades maximum.