View Single Post
Old 2008-12-04, 08:53 AM   #5 (permalink)
jimsmithuk
Rookie Pip Officer
 
Trader for 0 - 1 year
Location: Ireland
Posts: 27

Default

I'm not sure about this. When you look at the code it has code there that looks like it should open buy orders?

// check for long position (BUY) possibility
if(SARCurrent<Bid && SARPrevious>Bid)
{
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,Ask+ TakeProfit*Point,"macd sample",16384,0,Green);
if(ticket>0)
{
if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES )) Print("BUY order opened : ",OrderOpenPrice());
}
else Print("Error opening BUY order : ",GetLastError());
return(0);
jimsmithuk is offline   Reply With Quote