Comment on Code your Technical Analysis strategy
KK,
Sorry had missed your query,
Looking at this I can see 2 reasons,
1. Instead of using the Crossover function, just use the > or < , for example use this instead of crossover: MACD(26,13 9,EXPONENTIAL) > MACDSIGNAL (26,13,9,EXPONENTIAL)
2. MACD and MACD signal use exponential moving average and not simple average for plotting. This may also be creating the mismatch.