|
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.
|