pourquoi mon stoploss ne se deplace t'il pas

 

I notice that my stop of the loss does not move or does not identify the compilation nda also reports

//+------------------------------------------------------------------+
//|                                                      sidik trailing |
//|                                      Copyright 2012, CompanyName |
//|                                       http://www.companyname.net |
//+------------------------------------------------------------------+
#property copyright "Trailing stop"
 
/*
   Kicks in when position reaches at least TrailingStop pips of profit.
*/
 
extern double TrailingStop = 10;
 
// Set it to some value above 0 to activate stop-loss
extern double StopLoss = 10; 
double PointValue;
//Normalize trailing stop value to the point value
double TSTP = TrailingStop * PointValue;

int start()
{
  for (int i = 0; i < OrdersTotal(); i++) 
  {
      if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES)==true)
      if (OrderSymbol() != Symbol()) continue; // Skipping positions in other currency pairs
      
      //Calculate the point value in case there are extra digits in the quotes
      if (MarketInfo(OrderSymbol(), MODE_POINT) == 0.00001) PointValue = 0.0001;
      else if (MarketInfo(OrderSymbol(), MODE_POINT) == 0.001) PointValue = 0.01;
      else PointValue = MarketInfo(OrderSymbol(), MODE_POINT);
 
      if (OrderType() == OP_BUY)
       {
         if (TSTP>0 && Bid - OrderOpenPrice() > TSTP && OrderStopLoss() < Bid - TSTP) 
            {
               if (!OrderModify(OrderTicket(), OrderOpenPrice(), Bid - TSTP,OrderTakeProfit(),0, Red))
                  Print("Error setting Buy trailing stop: ", GetLastError());
            }
         else if ((OrderStopLoss() != Bid - StopLoss * PointValue) && (StopLoss != 0) && (OrderStopLoss() == 0))
            if (!OrderModify(OrderTicket(), OrderOpenPrice(), Bid - StopLoss * PointValue,OrderTakeProfit(),0, Red))
               Print("Error setting Buy stop-loss: ", GetLastError());
       }
      else if (OrderType() == OP_SELL)
      {
         if (TSTP>0 && OrderOpenPrice() - Ask > TSTP && OrderStopLoss() > Ask + TSTP)
            {
               if (!OrderModify(OrderTicket(), OrderOpenPrice(), Ask + TSTP,OrderTakeProfit(),0, Red))
                  Print("Error setting Sell trailing stop: ", GetLastError());
            }
         else if ((OrderStopLoss() != Ask + StopLoss * PointValue) && (StopLoss != 0) && (OrderStopLoss() == 0))
            if (!OrderModify(OrderTicket(), OrderOpenPrice(), Ask + StopLoss * PointValue,OrderTakeProfit(),0, Red))
               Print("Error setting Sell stop-loss: ", GetLastError());
      }
        }
 
   return(0);
}
/*if(TrailingStop>0)
  {
   OrderSelect(12345,SELECT_BY_TICKET);
   if(Bid-OrderOpenPrice()>Point*TrailingStop)
     {
      if(OrderStopLoss()<Bid-Point*TrailingStop)
        {
         OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderTakeProfit(),0,Blue);
         return(0);
        }
     }
  }*/
//+------------------------------------------------------------------+
 

pourquoi mon stoploss ne se deplace t'il pas (why is my stoploss not moving)

je remarque que mon stoploss ne se déplace pas or quand je compile il y pas d'erreur. Merci de votre aide(I notice that my stoploss does not move when I compile there is no error.

Thank you for your help)

Reason: