Thread: 'Cool' EA
View Single Post
  #9 (permalink)  
Old 05-23-2006, 06:10 AM
abozaid abozaid is offline
Junior Member
 
Join Date: May 2006
Posts: 1
abozaid is on a distinguished road
Guys, is that a flaw or what?

if iRSI(15,2)>iRSI(14,1) then
{
SetOrder(OP_SELL,Max(0.1,Floor(FreeMargin/500.)/10.),Ask,0,Ask+StopLoss*Point,0,Blue);
Alert("Sell - ",Symbol,"\n","Date - ",TimeToStr(CurTime),"\n","Balance - ",Balance);
};

if iRSI(15,2)>iRSI(14,1) then
{
SetOrder(OP_BUY,Max(0.1,Floor(FreeMargin/500.)/10.),Bid,0,Bid-StopLoss*Point,0,Red);
Alert("Buy - ",Symbol,"\n","Date - ",TimeToStr(CurTime),"\n","Balance - ",Balance);
};
Exit;
};


Shouldn't those marks be opposite? i mean if one ">" then the other is "<"??
Reply With Quote