0 is ok unless you've set also the external Lots variable explicitely to 0.

Your line above does not open trades when Entry was not met within the next bar. Then you'll get no error message of course, as this is no error. So I'd check the Entry value. If you can't find the problem you can anytime send me the script.