Help me build an EA?

I have an EA I was working on but it’s not always opening or closing an order where I think it’s suposed to. Sometimes it does and some times it doesn’t. But I’m not very good at mql4. Any expert mql programmers out there willing to take a look at it? It’s actually a pretty good strategy manually. If I could just get the EA do do what it’s suposed to do.

I can take a look.
If you got any errors is good to know.

compile it and thats when you can see if you have any errors

[removed - replied to wrong user]

it compiles ok, just wasn’t doing what it’s suposed to. got someone looking at it though, thanks all