Trailing profit does not work New comment yyencilek 2020.10.01 14:23 Hi why is my trailing profit doesnt work? int trailing= 100; double volume= 0.1; double higherhigh = NormalizeDouble(iHigh(Symbol(),0,iHighest(NULL,0,MODE_HIGH,3,0)),5); double lowerlow = NormalizeDouble(iLow (Symbol(),0,iLowest (NULL,0,MODE_LOW,3,0)),5); if(OrderSelect(ticket1 ,SELECT_BY_TICKET)==true && OrderMagicNumber()== magicNB1 && OrderCloseTime()==0 && OrderSymbol()==Symbol()) { if(OrderType == 0) { //check for profit trailing stop buy icin bool orderfind2= OrderSelect(ticket1,SELECT_BY_TICKET); if((higherhigh-Bid>trailing*_Point) && (Bid-OrderOpenPrice())>0) {bool orderkapama2= OrderClose(OrderTicket(),volume,Bid,10); return;} } else if(OrderType == 1) { //check for profit trailing stop sell icin bool orderfind5= OrderSelect(ticket1,SELECT_BY_TICKET); if((Ask-lowerlow>trailing*_Point) && (OrderOpenPrice()- Ask)>0) {bool orderkapama5= OrderClose(OrderTicket(),volume,Ask,10); return;} } }t work? I controlled the code but could not find it New comment
t work? I controlled the code but could not find it