Looking for MQL4 Indicator help

 

Hi,

I have attempted to code an Indicator for this thread: http://www.forexfactory.com/showthread.php?t=276813.

When I compile it the indie is 180 degress reversed (buys shows as sells and sells as buys) but if I change timeframe and revert back it is OK.

Then the indie always shows buys regardless from that point onwards.

It would be nice to get the alert working, but this might be broken due the indicator buffers being broken in some fashion.

Can some awfully nice person have a look-see and tell me what I have done wrong, as I can't see for looking!

Thank you

Art

Files:
Reason: