EA protection

 

Everybody suggests that the best way to protect an EA is thru DLL.

Can anyone show how to do that?

Assume just a simple EA.

 

 int start()
  {
//----
   if (OrdersTotal()==0 &&iClose(NULL,0,0)>iMA(NULL,0,60,0,MODE_SMA,PRICE_CLOSE,1))
   OrderSend(NULL,OP_BUY,1,Ask,3,100,200,"buy",123456,0,Green);
  
//----
   return(0);
  }