please help with small expert.

 
hello,

can someone please wright me a very simple EA that buys when there have been 3 bulls in a row and when it buys it must set a stoploss of -10 pips and a take profit of 10 pips.

i would apreciate it very much as i do not code mql4 and i have no idea where to start.

thanks very much.
 

Hi faultyboy,

void start()
{
  if (OrdersTotal() > 0) return;
 
  if (Close[1] > Open[1] && Close[2] > Open[2] && Close[3] > Open[3])
  {
    OrderSend(Symbol(), OP_BUY, 0.1, Ask, 3, Ask-10*Poinr, Ask+10*Point);
  }
}