OrderModify not accepting variable value

 
When I try to modify an order using OrderModify, it is not working when I use a variable as a parameter. How can I do this.
Please help
Thanks in advance.
 
editor help shows:
Sample:
  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);
          }
       }
    }

as seen above, 4 out of 6 function parameter actuals are/have variables.

More details/code fragment needed...

Reason: