Cheers.

Edit: All done now, I was able to simplify my ATR implementation considerably (that was predied on the NinjaTrader indior( but now dependent on the MT4 implementation).