Audit TEMA with three separate EMA columns

Audit TEMA with three separate EMA columns

Keep each stage in a separate column

Prepare four columns: price, EMA of price, EMA of that first EMA, and EMA of the second. Every stage uses the same period, and each stage reads the current row of the one immediately before it. A common spreadsheet error feeds the raw close to all three columns. On a flat run that mistake stays hidden.

Use a pulse instead of a trend

Begin at 100, then use a single close of 108 followed by a return to 100. For period 3 and all three stages seeded at 100, the pulse gives stage readings of 104, 102 and 101. Combining three times the first minus three times the second plus the third produces a TEMA of 107.

TEMA = 3 × EMA₁ − 3 × EMA₂ + EMA₃

Diagnose a suspiciously flat return

On the next close of 100, the three stages become 102, 102 and 101.5. TEMA reads 101.5. This happens to equal the third stage on that one bar because the first two terms cancel. Checking only that row would make a program that returns the third EMA appear correct.

Choose a discriminating test row

Compare the rising edge, the return and at least one subsequent flat close. Keep the stage values in the error report, not just the final number. For an MT5 chart comparison match the applied price, period, shift and history used to initialize the calculation.

Sources and further reading

Back to top

MQLume Bespoke

Built around your ambition.

Explore bespoke services →

Have something more specific in mind?

Ask us about advanced custom development. Share your requirements through private support or email; we will discuss the scope and quote separately.

100% committed to following up on your delivery and support requests.

Free downloads. Real source files.

FREE

Lizard [MQLume]

MQL5 / MT5Version v2.21

Free editable gold breakout project with six independently selectable cores, session filters and flexible position sizing.

US$149.00FREE
FREE

Scraper Gold [MQLume]

MQL5 / MT5Version v3.80

Free editable source with compiled EX5: four gold breakout engines with independent profiles, sizing, direction and exits.

US$95.00FREE
FREE

EA Black Dragon [MQLume]

MQL5 / MT5Version v13.0

Trend-based entries with optional grid additions, side controls and virtual exits.

US$30.00FREE
FREE

Hamster Scalping [MQLume]

MQL5 / MT5Version v21.0

RSI entries with two ATR filters, configurable sessions and optional grid management.

US$30.00FREE
MQLume

More to explore. A community to share it with.

Stay close to MQLume, wherever you like to learn.

YouTube

See our EAs in action. Explore backtests, walkthroughs and practical guides.

Watch on YouTube

Telegram

Meet other EA users, share ideas and keep up with what’s new.

Join the community Follow official updates

Cart

One personal-use licence per project. Each project can be added once.

Your cart is waiting for its first passenger.

Choose an EA or source edition to get started.

Continue shopping