Jurik Moving Average (JMA) [everget]

รับสิ่งนี้และอินดิเคเตอร์พิเศษอื่นๆ ใน Trading Toolkit

อินดิเคเตอร์นี้เป็นส่วนหนึ่งของพื้นที่แบบชำระเงินของ everget สมัครสมาชิกในราคา $5.00/เดือน เพื่อนำไปใช้งานบนชาร์ตของคุณ พร้อมทั้งเข้าถึงอินดิเคเตอร์พิเศษอื่นๆ ของผู้เขียน คุณชำระเงินผ่าน TradingView และเข้าถึงการใช้งานได้ทันที

Explore Trading Toolkit
Hello friends!

JMA (Jurik Moving Average) is Mark Jurik's adaptive noise-reduction filter. Every ordinary moving average forces the same trade-off: a smoother line is a slower line, and a faster line is a noisier one. JMA works around it by judging, bar by bar, how much of the latest move is noise and how much is real. It glides through choppy sideways action, then catches up with a new price level within a few bars once price really moves or gaps.

This script calculates JMA with a faithful port of Mark Jurik's original algorithm and adds direction coloring for the line, the price bars and the chart background, plus alerts on every turn.

🛠️ How It Works

JMA follows price with an adaptive channel. On each bar it measures how far price has jumped beyond that channel and compares the jump with a robust baseline of recent jitter: an average of the middle half of the last 127 readings, so a single spike can't distort it. The bigger the jump relative to that baseline, the faster the filter moves; in quiet, choppy conditions it settles back to its smoothest speed. A three-stage smoother then gives the line its final shape.
  • Length sets how much smoothing is applied. Small values follow price closely, large ones give a flatter, slower line. Jurik's typical range is 3 to 80.
  • Phase (-100 to +100) sets the character of the smoothing rather than its amount. Toward +100, JMA commits to moves earlier (less lag) but overshoots more after large price jumps. Toward -100 it waits a little longer but overshoots less. Mark Jurik calls this a classic trade-off in filter design: no filter can minimize lag and overshoot at the same time, and Phase lets you choose the balance.
  • Source can be any price or the output of another indicator.
"Highlight Direction" colors the line blue while it rises and orange while it falls. "Apply Bar Colors" (on by default) and "Apply Background Colors" (off by default) paint the chart green or red by the same slope. The three alerts follow the slope itself, so they work whether the coloring is on or off.

📊 See It In Action

  • Gap tracking - Plot a 16-period SMA, a 16-period EMA and JMA with Length 20 and Phase 50. JMA's Length is not on the same scale as an SMA or EMA period: at 20, JMA changes direction less often than both 16-period averages, yet after a gap it reaches the new level much sooner.สแนปชอต
  • The lag/overshoot trade-off - Add this script twice with Length 30, one with Phase +100 and one with Phase -100. The +100 line turns at the same time or earlier at almost every swing and catches up sooner after a jump, but it also changes direction more often. The -100 line overshoots less after large jumps.สแนปชอต
  • A faster crossover pair - Add this script twice: a slow line with Length 40 and Phase 0, and a fast line with Length 7 and Phase -100. Next to an EMA pair of similar smoothness, such as EMA 6 and EMA 30, the JMA pair usually crosses several bars earlier, but it also crosses more often, so expect more whipsaws in sideways markets. For a ready-made crossover system with entries, exits and alerts, see the companion "Jurik JMA/DWMA Crossover [everget]" script, which pairs JMA with a DWMA.สแนปชอต
  • JMA as a price proxy - Any indicator with a "Source" input can be run on this script's JMA instead of on raw price. Feed it to an RSI and the oscillator keeps its shape but loses about half of its bar-to-bar jitter. It also swings further and spends far more time beyond 70 and 30, so those levels are reached much more often.สแนปชอต
🔥 Key Features

  • Faithful port of Mark Jurik's original JMA algorithm
  • Adaptive speed: smooth through noise, fast on real moves and gaps
  • Length and Phase controls for balancing smoothness, lag and overshoot
  • Works on any source, including the output of other indicators
  • Direction coloring for the line, price bars and chart background
  • "Bullish Color Change", "Bearish Color Change" and "Any Color Change" alerts
❓ FAQ

  • Does JMA eliminate lag? No filter can. Removing noise takes several bars of data, and that is where lag comes from. JMA keeps lag small for a given smoothness by slowing down only when the data calls for it, instead of smoothing at a fixed rate.
  • Does JMA repaint? No. Each value uses only the current bar and earlier ones, so values on closed bars never change. As with any indicator, the value on the still-forming bar updates with every tick until the bar closes.
  • Why does JMA equal price on the first bars of the chart? JMA spends its first 31 bars calibrating its volatility baseline and simply returns the source until then; after that the filter runs normally.
  • Does JMA predict price? No. It is a filter, not a forecast: it estimates the current, denoised value of the series, not the next one.
  • Can JMA improve other indicators? Yes. Replacing the moving averages inside classic indicators with JMA usually makes them smoother and more timely. Jurik built DMX this way, by putting JMA inside the classic DMI.
As with any indicator, backtest before you trust it and never risk money on a setup you haven't validated yourself.

👋 Good luck and happy trading!

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน