You can see it in the log: Lots is 0 and thus no trade performed.

If you don't see in your script why lots is 0, print out Margin, OptimalF, and the other values that lead to a zero trade size. There's probably a 0 somewhere.