See attached backtest.  Trying to signal for MACD crossover on a 5 minute candle.  I logged the data to confirm if the cross over is correct.  The crossovers are not correct nor is the data on the signal line, MACD or histogram.  The RSI values aren't exactly the same but the data is close enough to be useful and the differences are irrelevant.  The MACD however is way off.  This have something to do with the way the tradebar is consolidated?