Creating developing proprietary indicators for a broker

 
Is it possible to create indicators and EAs that will only work for a given broker?  In other words if you wanted to create a brokerage using the metatrader platform would you be able to develop your own signaling package and keep it proprietary.
 
Yes, you can get your broker's IP address and use an if statement to perform the task. An example is attached:

if(!MyBrokersServer())
{
Alert("Expert will only run on My Broker's Servers.");
return(-1);
}//

bool MyBrokersServer()
{
if(ServerAddress()=="USE YOUR BROKER"S IP ADDRESS HERE")
return(true);
else
return(false);
}
 
thanks
 
No IP (it was possible in the MT3) server name only. For example "Alpari Demo"
 
Just a note.
If they really want to to take your ex4 file apart they will, and it's no big deal. The only way to keep it truly proprietary is to never publish it.
That's why many services that offer trading advice do it by email only.
On the other hand I doubt that this particular indicator or EA has any more special significance than many others already freely circulating on the net.
Reason: