Getting an error at the end of my code and can't figure it out.... ';' - open parenthesis expected Line 50 Column 46

 
 ';' - open parenthesis expected Line 50 Column 46
//property strict
#define BUTTON_NAME "Button"
extern double PartialClosePips = 20;
extern double LotSize = 0.01;
double pips = Point;
extern int PipsToLockIn=1;
extern bool UseMoveToBreakeven=true;

int OnInit()
{
   ObjectCreate(0, BUTTON_NAME, OBJ_BUTTON, 0, 0, 0);
   ObjectSetInteger(0, BUTTON_NAME, OBJPROP_XSIZE, 100);
   ObjectSetInteger(0, BUTTON_NAME, OBJPROP_YSIZE, 25);
   ObjectSetInteger(0, BUTTON_NAME, OBJPROP_YDISTANCE, 100);
   ObjectSetInteger(0, BUTTON_NAME, OBJPROP_XDISTANCE, 50);
   ObjectSetInteger(0, BUTTON_NAME, OBJPROP_COLOR, clrAliceBlue);
   ObjectSetInteger(0, BUTTON_NAME, OBJPROP_BGCOLOR, clrBlack);
   ObjectSetString(0, BUTTON_NAME, OBJPROP_TEXT, "TAKE PARTIAL");

   if(Digits == 3 || Digits == 5)
      pips *= 10;
   return(INIT_SUCCEEDED);
}

void OnDeinit(const int reason)
{
}

void OnTick()
{
}

void OnChartEvent(const int id,
                  const long& lparam,
                  const double& dparam,
                  const string& sparam)
{
   if(sparam == BUTTON_NAME)
   {
      double lots = OrderLots();
      int ticket = OrderTicket();

      for(int i = OrdersTotal()-1; i >= 0; i--)
      {
         if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES) && OrderSymbol() == Symbol())
         {
            if(OrderType() == OP_BUY || OrderType() == OP_SELL)
            {
               // Calculate the new stop loss level
              double stopLoss = OrderStopLoss;}}}}}
 
OrderStopLoss();

it's a function