Thread: Ask!
View Single Post
  #85 (permalink)  
Old 04-17-2006, 06:22 PM
firedave's Avatar
firedave firedave is offline
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
Quote:
Originally Posted by Bongo
Hi All,
EA is opening 2 positions
at the same time, same pairs.
Could u please check this.
Thanks, Bongo

int cnt = 0;

string OrderValueSymbol(int index)
{
OrderSelect(index, SELECT_BY_POS);
return(OrderSymbol());
}

int start()
{

if( Bars < 20 ) return(0);

for(cnt=1;cnt<=OrdersTotal();cnt++) {
if( OrderValueSymbol(cnt) == Symbol() )
{
Order = 1;
break;
}
else
{
Order = 0;
}
}

if( OrdersTotal() == 0 ) Order = 0;
if( OrdersTotal() < 5 && Order == 0 )
etc....
IMHO the multiple entry could happen if you test it on multiple pairs. How many pairs did you run the EA on the same time ?
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Reply With Quote