I lost 500 dollars to a moving average that was telling the truth too late. It was a Tuesday on EURUSD, hourly chart, and price had been climbing all morning. My plain 21-period exponential moving average was still sloping down from the overnight fall, so I waited. By the time it finally turned up and I bought, price had already travelled 60 pips, the easy part of the move was over, and my stop was placed exactly where the pullback went to collect it. I was stopped out for a full 500-dollar risk on a trade whose direction I had actually got right. The average had not lied to me. It had simply arrived late, because every average is built from old prices, and the 21-period EMA carries roughly half its own length in lag. That evening I went looking for a version of the same line that answers sooner without becoming a copy of price itself, and that search led me to the zero lag EMA, usually written ZLEMA.
In this article
- What the zero lag EMA actually measures, and what it does not
- The formula, worked by hand
- Funded settings: 21, 50 and 200
- How I read its signals, without pretending it predicts
- Sizing a ZLEMA trade under a daily loss limit
- I tested it: ten trades, with and without the trend filter
- Common mistakes that cost funded traders
- My daily routine with ZLEMA, and how it fits prop firm rules
- Frequently asked questions
The ZLEMA is not a different philosophy of trading. It is the same exponential average with one correction bolted on: before the smoothing runs, the current price is adjusted by how far price has moved since the lag point, so the average is pulled toward where price is now rather than where it was ten bars ago. Used that way, it turns sooner, it gives back less of a move at the exit, and it still filters noise better than raw price. Used badly, it whipsaws in a range, it tempts you into doubling your size because the entries feel earlier, and it breaks a funded account exactly as fast as any other line. This article is the funded version: what the ZLEMA measures, its formula worked by hand, the settings I actually use, how I read its signals, and the position-sizing maths that keep a faster line inside a daily loss limit.
What the zero lag EMA actually measures, and what it does not
The ZLEMA measures trend direction with less delay than a plain EMA of the same length. It does not measure momentum, it does not measure volume, and it does not predict where price will go next. When price sits above a rising ZLEMA, the recent trend is up; when price sits below a falling ZLEMA, the recent trend is down; when price chops across a flat ZLEMA, there is no trend worth paying for. That is the whole job, and it is enough, because most funded-account failures are not caused by missing a perfect indicator. They are caused by trading against the trend, entering late, and then sizing the trade as if the late entry were still an early one.
Two distinctions matter before you load it. First, the ZLEMA is not the same indicator as my plain EMA guide: the EMA is the raw material, and the ZLEMA is that material with a lag correction applied, so the two lines will agree in a slow trend and diverge sharply at a turn. Second, it is not the same thing as the Center of Gravity oscillator, which is also described as zero-lag but is a bounded oscillator that swings around a centre line; the ZLEMA is a moving average that sits on price itself. Confusing a line on price with an oscillator in a separate window is how traders end up taking an oscillator signal as a trend signal, and that confusion costs funded accounts. If you want a low-lag cousin for comparison, the Hull moving average is the closest relative, but Hull achieves speed with weighted averages while the ZLEMA achieves it by correcting the input price, and the two behave differently in a sharp reversal.
The practical question for a funded trader is not whether the ZLEMA is clever. It is whether a faster turn is worth anything when your daily loss limit is fixed. A line that turns four bars earlier gives you a tighter stop and a better entry price, which means the same dollar risk buys you more size or the same size risks fewer pips. It also gives you more false turns in a range, which means more small losses if you trade every turn. The funded rule that follows from that is simple: trade the ZLEMA only when it agrees with the higher-timeframe trend, and ignore it when it is flat. The rest of this article is that rule, made concrete.
The formula, worked by hand
The ZLEMA formula has three steps, and none of them needs a spreadsheet to understand. First, work out the lag for your chosen length: lag equals the length minus one, divided by two. Second, build an adjusted price by adding today’s move since the lag point to today’s close. Third, run an ordinary EMA on that adjusted price. In symbols, with n as the length and alpha as the usual EMA smoothing constant 2 divided by (n plus 1): lag = (n – 1) / 2, adjusted price = close + (close – close lag bars ago), and ZLEMA = alpha x adjusted price + (1 – alpha) x previous ZLEMA.
| Step | What you do | 21-period example |
|---|---|---|
| 1. Lag | (n – 1) / 2 | (21 – 1) / 2 = 10 bars |
| 2. Adjusted price | Close + (close – close 10 bars ago) | 1.0945 + (1.0945 – 1.0850) = 1.1040 |
| 3. Smoothing | alpha = 2 / (n + 1) | alpha = 2 / 22 = 0.0909 |
| 4. ZLEMA today | alpha x adjusted price + (1 – alpha) x previous ZLEMA | 0.0909 x 1.1040 + 0.9091 x 1.0880 = 1.0895 |
| 5. Plain EMA, same inputs | alpha x close + (1 – alpha) x previous EMA | 0.0909 x 1.0945 + 0.9091 x 1.0880 = 1.0886 |
Read that last comparison slowly, because it is the whole indicator in one row. On a day when price has risen 95 pips in ten bars, the ZLEMA sits at 1.0895 while the plain EMA sits at 1.0886: nine pips closer to current price. Nine pips does not sound dramatic until you remember that a funded stop is often 30 to 50 pips, so nine pips is roughly a fifth of your stop distance, recovered at the entry and again at the exit. The correction is not magic, and the name overpromises: “zero lag” removes the average’s own lag, not the fact that the line is still computed from closes that have already happened. John Ehlers, who published the lag-removal idea, made exactly this point in his original paper: removing all lag would leave you with price itself, which is no filter at all. The honest name would be “less lag EMA”, and the honest expectation is a line that turns sooner, not a line that turns first. My external source for the method is that Ehlers zero-lag paper, which works through the same error-correction idea in full.
One more property deserves a warning before settings. Because the adjusted price adds the recent move to the current close, the ZLEMA overshoots slightly at sharp turns: it leans further in the direction of the move than price itself, for a bar or two, and then settles. That overshoot is the price of speed. If you place your stop one pip beyond the ZLEMA on a volatile bar, you will be stopped by the overshoot itself. Give the line room, and judge its slope over two or three closed bars rather than one wick.
Funded settings: 21, 50 and 200
I run three ZLEMAs, and each has one job. The 21-period ZLEMA on the hourly chart is my signal line: its slope and its position relative to price decide whether I am looking for longs, shorts, or nothing. The 50-period ZLEMA on the same chart is my trend filter: I only take longs when price is above it and only shorts when price is below it, which kills roughly half the losing counter-trend trades a fast line would otherwise produce. The 200-period ZLEMA on the four-hour chart is my regime check: if the hourly signal disagrees with the four-hour 200, I halve size or skip the trade entirely, because a funded account does not pay you for being right about the hour while wrong about the day.
| ZLEMA | Chart | Job | When I ignore it |
|---|---|---|---|
| 21 | Hourly | Signal line: slope + price position | When it is flat for 5+ bars |
| 50 | Hourly | Trend filter: longs only above, shorts only below | Never: the filter is the rule |
| 200 | Four-hour | Regime check: halve size on disagreement | When the four-hour line itself is flat |
| 21 / 50 cross | Hourly | Confirmation, never the entry trigger alone | Inside a range, where crosses repeat |
Beginners often ask whether a shorter ZLEMA, say 9 or 12, is better because it is faster still. On a funded account the answer is no, and the reason is arithmetic, not taste. A 9-period ZLEMA has a lag of only four bars, so its adjusted price amplifies every four-bar wiggle, and on EURUSD hourly that produces two to three extra signals a week, most of them in ranges where the daily loss limit is quietly eaten by small losses. The 21 keeps enough smoothing to survive a normal pullback while still turning visibly sooner than a 21 EMA. If your pair is wilder than EURUSD, such as GBPJPY, move the signal line to 25 rather than shortening it: length is your noise control, and on a funded account noise control is drawdown control. Never trade a ZLEMA cross by itself in a range; a cross without a slope, without a filter agreement, and without a session you can explain is not a setup, it is a coin flip with a spread attached.
How I read its signals, without pretending it predicts
I read the ZLEMA in a fixed order, and I do not skip steps when I am impatient, because impatience is the step I used to skip. First, slope: is the 21 ZLEMA rising over the last three closed bars, falling, or flat? A flat line is a no-trade verdict, not a weak signal. Second, position: is price above the line for a long, or below it for a short? A long taken below a falling line is a counter-trend trade wearing a trend indicator’s clothes. Third, filter: does the 50 agree, and does the four-hour 200 at least not oppose? Fourth, structure: is there a pullback to the line, rather than a chase after a vertical bar? The best ZLEMA entries in my journal are not crosses; they are pullbacks that touch a rising line and hold, with the stop just beyond the pullback low.
Divergence deserves one paragraph because it is where fast averages mislead. When price makes a new high but the ZLEMA’s slope flattens, that is not a sell signal on its own; it is a warning to tighten the stop, take partial profit, or skip the next add-on. I learned that distinction on a GBPUSD trade where I shorted a flattening slope into a strong uptrend and watched price grind another 80 pips against me while the line stayed flat. The ZLEMA told me momentum was tiring; it did not tell me the trend had ended, and a funded account punishes traders who turn a warning into a position. For the full pullback-entry version of this logic, my trend pullback strategy guide uses the same structure with a plain average, and the ZLEMA version simply enters a few pips earlier with the same stop logic.
Session matters as much as slope. A ZLEMA turn at 03:00 during the dead Asian hours, on thin volume, is not the same evidence as a turn at 09:00 London open with the day’s range expanding. I take ZLEMA signals in London and New York hours, I am cautious in the overlap, and I ignore new signals in the last hour before a red-folder news release on the pair I am trading. News can gap straight through a line that has been perfect all week, and no lag correction protects a stop from a gap.
Sizing a ZLEMA trade under a daily loss limit
A faster entry is only useful if the size respects the same limit as a slow one. My funded account is 100,000 dollars with a 5 percent daily loss limit, which is 5,000 dollars a day, and I risk 0.5 percent per trade, which is 500 dollars. That personal cap, one tenth of the daily limit, means ten consecutive full-stop losses would be needed to breach the day, and I stop after three losses anyway. The sizing formula is the same one I use everywhere: lots = risk dollars divided by (stop pips multiplied by pip value per lot). For EURUSD, one standard lot is 10 dollars per pip, so a 40-pip stop at 500 dollars of risk gives 500 / (40 x 10) = 1.25 lots.
| Input | Worked value | Why it matters |
|---|---|---|
| Account size | 100,000 dollars | Sets the 5 percent daily limit: 5,000 dollars |
| Risk per trade | 500 dollars (0.5 percent) | One tenth of the daily limit, ten full stops to breach |
| Entry (ZLEMA pullback long) | 1.0945 | Price touches the rising 21 ZLEMA and holds |
| Stop loss | 1.0905 (40 pips) | Below the pullback low, not below the line itself |
| Position size | 1.25 lots | 500 / (40 x 10) = 1.25 |
| Target 1 (2R) | 1.1025 (80 pips, 1,000 dollars) | Bank half here, move the rest to breakeven |
| Target 2 (3R) | 1.1065 (120 pips, 1,500 dollars) | Runner only if the slope stays rising |
Notice what the ZLEMA contributed to this table and what it did not. It contributed the entry: price touched the line at 1.0945 instead of the plain EMA’s 1.0920, so the same 40-pip stop structure sat 25 pips higher and the 2R target was reached sooner. It did not change the risk: 500 dollars is 500 dollars whether the line is fast or slow, and the temptation to raise size because the entry “feels earlier” is exactly how a faster indicator breaches a daily limit. Run your own numbers through the max daily drawdown calculator before you trade a new setting, and if the calculator shows your planned risk eating more than a fifth of your daily limit, the setting is wrong, not the calculator. The full loss-limit maths is in my max daily loss guide, which I re-read every time I change a parameter.
I tested it: ten trades, with and without the trend filter
I tested the 21 / 50 ZLEMA rule on ten consecutive EURUSD hourly pullback setups, first with the filter switched off and then with it on, keeping the same 500-dollar risk and the same 40-pip stop throughout so the comparison is honest. Without the filter, the line fired seven times in ranges and trends alike; with the filter, three range trades were removed before entry, and the remaining trades were all in the direction of the 50. The table below is the filtered set plus the three trades the filter rejected, so you can see what the filter actually saved rather than taking my word for it.
| Trade | Setup | Filter | Result (pips) | Result (dollars at 1.25 lots) |
|---|---|---|---|---|
| 1 | Pullback to rising 21, above 50 | Pass | +80 (target 1) | +1,000 |
| 2 | Pullback to rising 21, above 50 | Pass | -40 (full stop) | -500 |
| 3 | Pullback to rising 21, above 50 | Pass | +120 (target 2) | +1,500 |
| 4 | Pullback to rising 21, above 50 | Pass | +80 (target 1) | +1,000 |
| 5 | Pullback to rising 21, above 50 | Pass | -40 (full stop) | -500 |
| 6 | Pullback to rising 21, above 50 | Pass | +80 (target 1) | +1,000 |
| 7 | Pullback to rising 21, above 50 | Pass | +40 (breakeven runner) | +500 |
| 8 | Cross below a flat 50 | Rejected | Would have lost 40 | Saved 500 |
| 9 | Cross against the four-hour 200 | Rejected | Would have lost 40 | Saved 500 |
| 10 | Turn in a flat range | Rejected | Would have lost 25 | Saved 312 |
The filtered seven trades netted +4,000 dollars on 3,500 dollars of risk taken, and the three rejections saved a further 1,312 dollars of would-be losses. Ten trades prove nothing statistically, and I will not pretend otherwise; what they prove is narrower and more useful, namely that the filter, not the speed, did most of the work. A trader who copies only the 21-period line and ignores the 50 will get the whipsaws without the protection, and will conclude the indicator “does not work” when the rule, not the line, was incomplete. Backtest the filter before you backtest the line, because on a funded account the trades you refuse are worth as much as the trades you take.
Common mistakes that cost funded traders
The first mistake is trading every cross. A ZLEMA cross in a range is noise with a confident look, and three range crosses at 500 dollars each is 1,500 dollars, nearly a third of a 5,000-dollar daily limit, spent on nothing. The second mistake is moving the stop to the line itself: the ZLEMA overshoots at turns, so a stop hugging the line gets hit by the indicator’s own wobble, and the correct stop sits beyond the pullback extreme, not beyond the line. The third mistake is sizing up because the entry is earlier; earlier is not safer, and a 40-pip stop at double size is an 80-pip risk in disguise. The fourth mistake is stacking the ZLEMA with two more fast averages and treating their agreement as confirmation, when all three are computed from the same closes and will agree at exactly the wrong moment. One fast line, one filter, one volatility tool for the stop: that is the ceiling.
| Mistake | What it costs | The funded fix |
|---|---|---|
| Trading every cross | Range whipsaws eat the daily limit | Require slope + filter + structure, all three |
| Stop on the line | Overshoot stops you out, then price runs | Stop beyond the pullback low or high |
| Sizing up for an early entry | Same pips, double dollars, breached day | Risk fixed at 0.5 percent, line never changes it |
| Stacking three fast averages | False confirmation from one price series | One signal line, one filter, one stop tool |
| Trading into red-folder news | Gap through any line, stop slipped | No new ZLEMA signal in the hour before news |
The fifth mistake is subtler: changing the length after two losses. A 21 that loses twice is not broken, and a 14 fitted to the last two losses is curve-fitting with a funded account as the test budget. I keep a setting for at least thirty trades before judging it, I log every trade with its filter state, and I change one parameter at a time. If you cannot show me thirty logged trades on a setting, you do not have a setting, you have a mood, and moods do not survive drawdown rules.
My daily routine with ZLEMA, and how it fits prop firm rules
My routine is deliberately boring, because boring is what survives a drawdown. At the London open I mark the four-hour 200 ZLEMA direction, I note whether the hourly 50 agrees, and I write down the one direction I am allowed to trade that morning. During the session I watch only for pullbacks to the rising or falling 21, I check the stop maths before I check the entry price, and I stop after three losses or after 1,500 dollars of daily loss, whichever comes first, even though the firm would allow 5,000. That personal early stop is the single best funded-account habit I have: it leaves room for tomorrow, and tomorrow is when the line usually works again.
| Time | Step | Rule |
|---|---|---|
| London open | Mark four-hour 200 + hourly 50 direction | One allowed direction for the morning, written down |
| During session | Wait for a pullback to the 21 ZLEMA | No chase after a vertical bar, no cross alone |
| Before entry | Size from the stop, check the daily total | Risk 500 dollars, never more, whatever the line says |
| After target 1 | Bank half, move the rest to breakeven | A winner must never become a full loser |
| Daily stop hit | Close the platform at 1,500 dollars lost | Three losses or 1,500 dollars, whichever is first |
How does this fit the firm’s rules, rather than just my preferences? The daily loss limit is protected by fixed fractional risk and an early personal stop; the overall drawdown is protected by the four-hour filter, which keeps me out of counter-trend trades that produce the deep, slow bleeds that kill accounts; the consistency rule is protected because pullback entries produce similar-sized wins instead of one giant day; and the minimum trading days problem never arises, because a routine that trades most mornings fills the calendar without forcing trades. A faster line does not exempt you from any of these rules, and if a setting tempts you to break one of them, the setting goes, not the rule. Speed is a convenience, drawdown discipline is the account, and no indicator, however clever its formula, outranks the limit written in the firm’s rulebook.
If you take one habit from this article, take the filter habit: write down the allowed direction before the session, trade only pullbacks to a sloping 21 ZLEMA in that direction, size every trade at the same fixed risk, and let the line be fast while your risk stays slow. That combination, a quick line inside slow rules, is the only version of the zero lag EMA I have found that survives contact with a funded account.
Frequently asked questions
Is the zero lag EMA better than a plain EMA for funded trading?
It is faster, not better in every condition. In a trend it enters earlier and exits sooner, which improves the entry price and the stop placement. In a range it whipsaws more, because the lag correction amplifies short moves. With the 50-period filter and a flat-line veto, the faster version earns its place; without them, the plain EMA is the safer funded choice.
What settings should a funded trader start with?
Start with 21 on the hourly chart as the signal line, 50 on the same chart as the filter, and 200 on the four-hour chart as the regime check. Trade only pullbacks to the 21 in the direction of the 50, risk 0.5 percent per trade, and keep the setting unchanged for at least thirty logged trades before judging it.
Does a ZLEMA cross always mean I should trade?
No. A cross is the weakest ZLEMA signal, and in a range it repeats until it has eaten your daily limit. Require three things before entry: a sloping 21, agreement from the 50, and a pullback structure with a stop beyond the pullback extreme. A cross that lacks any one of those is a no-trade.
Why does the ZLEMA overshoot at sharp turns?
Because the adjusted price adds the recent move to the current close, the line leans past price for a bar or two at a violent turn, then settles back. That overshoot is the cost of speed. Keep your stop beyond the pullback extreme rather than on the line, and judge the slope over two or three closed bars, not one wick.
Can the ZLEMA be used alone?
It can be the only signal line, but it should never be the only decision. It needs a trend filter, a volatility-based stop distance, and a fixed-risk sizing rule around it. Used alone, without a filter or a sizing rule, it is just a fast line attached to an unprotected account.
How does the ZLEMA fit prop firm drawdown rules?
It fits only when the risk is fixed: 0.5 percent per trade, a personal daily stop well inside the firm’s daily limit, and a higher-timeframe filter that prevents counter-trend trades. The line itself does not protect any limit; the sizing, the filter, and the daily stop do, and the line simply gives them earlier entries to work with.
Risk disclaimer: Trading leveraged products carries a high level of risk and may not be suitable for all traders. The examples in this article use a demo-style funded account structure for illustration only and are not financial advice. Always check your firm’s current rulebook before trading a new indicator, and never risk money you cannot afford to lose.





2 comments
[…] TEMA adds a third smoothing pass and removes even more lag, at the cost of even more overshoot. The zero lag EMA removes lag a different way, by adjusting the price itself before smoothing. The FRAMA changes its […]
[…] and JMA is what you graduate to when EMA whipsaw starts costing you real money. And unlike the Zero Lag EMA, which removes lag by adding a correction term that can overshoot, JMA removes lag by filtering […]