This chart has two 89-bar EMAs of the close: a green one and a red one. However, for the red one, the first 89 bars of the graph are considered to have a close of "0", which is exactly whatTradingView's calculation uses for bars before the start of the graph.
This is because unlike other moving averages, which reference the price of previous bars, the references the of previous bars. Therefore, bars closer to the beginning of the chart, where TradingView can't calculate an because there is no previous and therefore uses 0, will return substantially different values for the () function that the same cart would with more history.
The further a bar is back in history, the less influence it has. However, every single historical bar has some influence on the of every later bar.
To allow you to see this for yourself, this script contains the following inputs which you can change to see the effect:
-EMA period (default 89)
-Number of bars to ignore for EMA2 (default 89)
-decimal precision to show differences in. By making this a large number you can see that, although the effects diminish, history length affects all values for the char.
-label spacing (increase this if you have a long history and run into TV's 50-label limit)
-Added bar labels to indicate integer multiples of EMA length
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.