some work on macd, which is probably incorrect not sure