Trying to Build EA

Hey everyone!

I’ve been trying to build a simple little EA that buys when D+ overtakes D- in the ADX indicator, and vice versa. I also tried coding (on experts advisor builder) it so that it sells when the other crossover makes an appearance. Seems simple… but I can’t get it working! :confused:
I’d appreciate it if someone could take a peak at the code and check out what’s wrong with it. :rolleyes:

I might be able to build the ea for you.