please can anyone help me i need a short code

 
I need an expert code that reads the bid price and stores it. When the next qoute appears, if the same price has not changed, an alert will be issued, and so on until this price changes every second.
 
static double bid=0;
double bidPrev = bid; bid = iClose(NULL,0,0);
if(bidPrev == bid) Alert("Bid unchanged");
Was that so hard you couldn't do it?
 
yes thank you very much but i need check every second if the new second same price send me alert until price change
William Roeder:
Was that so hard you couldn't do it?
Reason: