Bear Market Percentage

 
void OnTick()
  {

   int HC3 = iHighest(NULL,PERIOD_D1, MODE_HIGH,WHOLE_ARRAY,0);


   double HC33 = High[HC3];

   double BearMarket = (((HC33-(SymbolInfoDouble(Symbol(), SYMBOL_BID)))/ HC33) * 100);

}
Trying to find if the price is in a bear market on the daily chart while looking for trades on the 5 min. I use this above, but the program spits out a 5min chart reading instead of the daily value. Idea's?