Error message when testing EA

How do I correct the error Tester stopped because OnInit returns non-zero code 1 in my mql5 code?
[Deleted]
Claire Marie Byrne: How do I correct the error Tester stopped because OnInit returns non-zero code 1 in my mql5 code?

One would assume that if the code is correct, then OnInit is reporting a problem and that it should not continue in the first place. It may be reporting invalid parameters or some other invalid condition. Verify the situation and find out why.