Find the two Zero Lag EMA scripts in TradingView
Open the linked TradingView listings and verify the titles and authors. everget’s script is called Zero Lag Exponential Moving Average and defaults to length 14 with Close as its source. LazyBear’s script is called Indicator: Zero Lag EMA & a simple trading strategy. Its published source defaults to length 10 and uses Close.
Use the same length when comparing the formulas. At length 14, everget takes the close from six bars ago, subtracts it from the current close, adds that difference to the current close, then applies an EMA to the adjusted input. At 11:25 ET in the example, the close is 6,013.25 and the close six bars earlier is 6,012.75. The adjusted input is 6,013.75 before smoothing.
LazyBear first applies an EMA to closes, then applies another EMA to that first line. Its output is twice the first EMA minus the second. This gives a different correction even when both scripts use length 14.
