add caculate macd size and peak in getBlock