title: What's wrong with this MQL4 code?
body: <p>I wanted to make a generic code, where I could set a <strong><code>pricepoint</code></strong> and have the program buy and sell on my demo account.</p>
  
  <pre><code> {
     double pricepoint = 1.36900;
  
  
     if ( Bid &lt; pricepoint )
     {
        int ticket;
        ticket = OrderSend( "EURUSD", OP_BUY, 1.0, Ask, 0, 0, 0, "My 1st Order!" );
     }
     else if ( ticket != -1 ) &amp; ( Ask &gt; pricepoint )
     {
        OrderClose( ticket, 1.0, Bid, 0 );;
     }
  </code></pre>