max and min value of MACD signal & base line

How to get max and min value of MACD signal & base line for n period values?? Thanks in advance