How to make an EA work on only one broker platform

 

Hi, Can someone please let me know what the code would be to make an ea work on only one broker platform. For example I only want ea to work on broker FXPrimus and not any other broker. Any help appreciated

Best rgds and Thank you

 
fxwealth:
Hi, Can someone please let me know what the code would be to make an ea work on only one broker platform. For example I only want ea to work on broker FXPrimus and not any other broker. Any help appreciated Best rgds and Thank you

Place this :

if (AccountCompany()!="FXPrimus") return(0);

at the first line of "start" procedure

 

Thank yu so much mladen! Tried it and works perfectly. Thanks once again. Best rgds