Errors when using only the ex4, but working fine with source code available

Hello,

I am building an EA for MT4 and I have the following problem. When I run it on a platform with only the .ex4 file is available, I have divide by zero error (on a line where I get the price of another pair to convert the lot size for proper risk management). When the source file is available in the Experts folder, everything is working fine.

I have tried recompiling and reinstalling the expert and event mt4. The problem persists.

Any ideas?

It could be that it is calling a library file that is not present. It could be a different broker and sbol prefixes or suffixes and indeed names for the pairs.

Just a thought, I am not a great coder of MT4 but I have fixed quite a lot of indicators post download in the past.