Thread: Ask!
View Single Post
  #889 (permalink)  
Old 12-14-2007, 12:56 AM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 558
Michel is on a distinguished road
if(Bid >= CurrentLow+(Point*Ret2))
OrderSend(Symbol(),OP_SELL,Lots*2,Bid,3,Bid+(SL2*P oint),Bid-(TP2*Point),"Albatross_v1",MagicNumber,0,Green);
total = 0;
return(0);

total = 0 doesn't have sense, try CurrentLow = 1000 instead. But it depends of what you want to do: may be you want to restart once both orders are closed, not immediately after the second one is open ?

Also, return(0) is not needed here, and you have to delete the empty ini(), deinit() and start() function : you cannot have two functions with the same name; you have mixed a template to build an indicator with one to build an EA.
Reply With Quote