Running EA w/FCMs that use 5 digits following the decimal point

 
I had created an EA that works well with FCMs that use 4 digits following the decimal point on price quotes i.e. gbpusd. However the EA does not work correctly with FCMs i.e. Tradeview who use 5 digits following the decimal point. How can this be fixed?
 
please elaborate on what exactly is not working in the EA. Otherwise we cannot help you I guess.