Spread or not makes a HUGE difference, in fact I get the same wrong prices above when I run that script. You must set spread to zero for binary portfolio trading, and also commission:

Spread = Commission = 0;

Train again afterwards. Just commenting-in the line is not enough when you still trained with the wrong script.