Need a little help with a pin bar EA.... just bug fixes and improvement ideas

Hey guys, dolls and internet surfing robots,

I have created an EA designed to trade pin bars. It uses the same grading system that I use when I decide whether or not I want to trade a pin bar. At this stage, it cannot distinguish between inverted pins and normal pins but I will fix that later.
In the meantime, I annot get the EA to work in terms of getting it to actually trade (because of a bug in the code somewhere).
If you are interested in trying to help me find it and help me improve the system or if you just want more information on the EA, send me a private message (or post here if you think it would be useful for others).

Cheers,
Fib