Beluck,
Any particular reason you have the iCustom call to the T3MA indicator? I didn't see the result being used anywhere.
btw, nicely written. I noticed the use of TradeSymbol. Any chance you were thinking of incorporating multiple pair trading?
-lcg