Lisa Let's look at an example macd(2,4,1) > 0 means EMA(2) > EMA(4) COUNTS = COUNTS +1 if (EMA(2) < EMA(4)) COUNTS = COUNTS -1