help HEDGING one currncy

 

need help... :)

 i try make code to headging in one currency...

exampel : buy gu 1.9755

price go to 1.9735..... that mean -20pip.....

new OP SELL 1.9735 TP 20pip......and close all if SELL TP

scan profit :

double  ScanProfit()
{   
   int total = OrdersTotal();
   double profit,sprofit,bprofit,bval,sval;
      
   for(cnt=0; cnt<total; cnt++) 
   {        
   OrderSelect(cnt, SELECT_BY_POS);            
      if(OrderSymbol() == Symbol())
      {
         bprofit=0; sprofit=0;
         for( i=1; i<=2*NumberOrds; i++) 
         { 
            if( OrderType()== OP_BUY && OrderMagicNumber() == Magic + i) 
            {
            bval = (Bid - OrderOpenPrice())/Point;
            //bprofit = bprofit + bval;
            }
            if( OrderType()== OP_SELL && OrderMagicNumber() == Magic + i) 
            {
            sval = (OrderOpenPrice()-Ask)/Point;
            //sprofit = sprofit + sval;
            
            }
            bprofit = bprofit + bval;
            sprofit = sprofit + sval;
         //Print(" sProfit=",sprofit," OrderOpenPrice=",OrderOpenPrice()," sval=",sval);
         }   
      }  
     
   }
   profit = bprofit + sprofit;
   //Print(" Profit=",profit," bprofit=",bprofit," sprofit=",sprofit);
   return (profit);
}

and then...... cek the profit

if (ScanProfit() == -20)
    {
  double Lots;
  int    op;
  for (int i=OrdersTotal()-1; i>=0; i--) {
    if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
      if (OrderSymbol()==Symbol()) {
        op=OrderType();
        if (op==OP_BUY) {
          Lots=OrderLots();
         
          OrderSend(Symbol(),OP_SELL,0.09,Bid,5,0,Bid-10*Point,"Reverse",0,0,CLR_NONE);
        }
        if (op==OP_SELL) 
          Lots=OrderLots();
         
          OrderSend(Symbol(),OP_BUY,0.09,Ask,5,0,Ask+10*Point,"Reverse",0,0,CLR_NONE);
        }
      }
    }
but EA never hedging.... why??? if i try change 
if (ScanProfit() <= -20)

still never hedging... and i change

if (ScanProfit() >= -20)
yes heding running.... but diffrent with my strategy......

help me pls

Reason: