Skip to content
All library documents

Why MACD Values Can Differ Across Platforms: EMA Warm-Up Data

Article FMZ forum · Author: 老胡

Summary

The article investigates why MACD values from TradingView and FMZ differ despite matching results across several FMZ indicator implementations. To isolate the discrepancy, the author compares EMA values and writes a manual EMA calculation, which agrees with FMZ's built-in EMA. This shifts attention from the indicator formula to the underlying price history.

Comparing the charts from their earliest available candles reveals that TradingView begins one bar earlier than FMZ. Because each EMA value incorporates the previous value, a different starting bar can propagate a difference through subsequent EMA calculations and therefore affect MACD. The analysis identifies data-history alignment as the cause in this comparison. It does not establish that all cross-platform MACD discrepancies have the same cause, nor does it present a broader test across assets, timeframes, or data feeds.

Key ideas

  • Several FMZ MACD implementations agree with one another but differ from TradingView's chart values.
  • A hand-written EMA calculation matches FMZ's built-in EMA in the comparison.
  • TradingView's available history begins one candle earlier than FMZ's.
  • Different starting data can carry through later EMA values and affect MACD comparisons.
  • The finding explains this platform comparison and is not shown to generalize to all discrepancies.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.