Can anybody help me for this?

 
I want to creat an expert adviser which opens buy and sell at the same time in the current price and close the operation for 15 pip sell and 15 pip buy, and when the first operation reaches the 15pip it opens at that price another buy and sell operation... thanx
 

Good for you.

Is there a question hidden in there?


CB

 
cloudbreaker wrote >>

Good for you.

Is there a question hidden in there?

CB

no just I wonder if anybody ca,n help me do it I really need your help men please

 
webroller:
I want to creat an expert adviser which opens buy and sell at the same time in the current price and close the operation for 15 pip sell and 15 pip buy, and when the first operation reaches the 15pip it opens at that price another buy and sell operation... thanx

This is pointless.. you will always lose as you pay double spread. Even if you set your stop at 10 pips sometimes both stop losses will be hit. You're wasting your time...

 
robofx.org wrote >>

This is pointless.. you will always lose as you pay double spread. Even if you set your stop at 10 pips sometimes both stop losses will be hit. You're wasting your time...

I know but I want to just know the code please help me
 
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
if (OrdersTotal()==0)
{
OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-15*Point,Ask+15*Point);
OrderSend(Symbol(),OP_SELL,0.1,Bid,3,Bid+15*Point,Ask-15*Point);
}
return(0);
}
//+------------------------------------------------------------------+
 
THANX A LOT TRYING IT
Reason: