title: How can I call OrderSend inside custom indicator?
body: <p>I've got an indicator that signals an action by sound and alert:</p>
  
  <pre><code>PlaySound("news.wav");
  Alert(Symbol()," make an action"); 
  </code></pre>
  
  <p>I wanted to add there the OrderSend function to auto buy-sell and it looks this way:</p>
  
  <pre><code>int ticket;        
  PlaySound("news.wav");
  Alert(Symbol()," make an action"); 
  ticket=OrderSend(Symbol(),OP_SELL,1.0,Bid,2,Bid+7*Point,Bid-7*Point,"Sell",0,0, Red); 
  </code></pre>
  
  <p>When the time comes, there is the signal, there is the alert but there are no orders.</p>
  
  <p>It is said that Trading functions can be used in experts and scripts in documentation: <a href="http://docs.mql4.com/trading" rel="nofollow">Trading Functions</a>
  but it has to be done in some way.</p>
  
  <p>How can it be done?</p>