Hello!
I'm Alex, professional programmer for financial market
I'm very experienced in programming for FXCM TS2 platform, you can find related projects and reviews in my portfolio here on freelancer website
I checked the code you attached, actually there are many functions which are not using, so may be it is the case of the issues you faced
Don't hesitate to contact me to discuss the details,
Kind rgards,
Alex