About Moving Average Deviation
Moving Average Deviation shows how far price is from its moving average, in a window below the chart. Instead of fixed levels such as ±2%, the Stretched and Extreme levels come from the chart's own past, so the same settings work on any symbol and timeframe.
The distance
- Percent: (close − MA) ÷ MA × 100, the classic deviation rate (default).
- ATR: (close − MA) ÷ the ATR (14) of the previous bar. ATR is the average of the true range, as in MetaTrader's built-in ATR.
- Pips: (close − MA) in pips. Gold, silver and a few indices and crypto symbols use their own pip size.
- Moving average: SMA 20 by default. EMA, SMMA (RMA), WMA, HMA and VWMA (tick volume) can be chosen.
Stretched and Extreme
- The distances of the last 3,000 bars are ranked, bars above the MA and bars below it separately. Stretched is farther than 90% of them and Extreme farther than 98%. The lookback (100 to 5,000 bars) and both percentages are settings.
- Each bar is compared only with the bars before it, so past levels and colors do not change.
- The levels need 50 past bars on each side of the MA. Until then the text says "Not enough past bars yet".
In the window
- The distance line: gray when normal, green when Stretched above the MA, red when Stretched below it, twice as thick when Extreme. Stretched levels are dotted and Extreme levels solid, with a dotted zero line.
- Three lines of text at the top left: the distance and its state, for example "0.41% above SMA 20 - Stretched", how far it is compared with past bars on the same side, for example "Farther than 65% of past bars", and the prices where the current bar would close Stretched or Extreme, for example "Stretched above 160.614 - Extreme above 161.560".
- On the price chart, short dashed lines over the last 30 bars mark those two prices, on the side of the MA price is on now. The prices include the move in the MA that the same close would cause.
- Colors can be changed, and the levels, the text and the price lines can each be turned off.
Higher timeframe
- Timeframe: Chart (default) or M5 to MN1. The MA and the ranking then use that timeframe's bars, built from the chart's own bars. Each chart bar uses the closed higher timeframe bars and the current price, so past bars show what the MA was at that time. The latest value moves with price until the higher timeframe bar closes.
Alerts
- Stretched and Extreme (on), Back to normal and MA cross (off). Then choose above the MA, below it or both.
- For example "Stretched 1.82% above SMA 20, close 160.321: USDJPY H1", "Extreme 2.50% below SMA 20, close 150.100: USDJPY H1" or "MA cross, close above SMA 20 158.702: USDJPY H1".
- Checked once on each closed bar, and not for bars that were already there when the indicator was added. Popup, sound, push notification and email, all off by default.
For EAs
- Buffer 4: the distance. Buffers 0 to 3: Stretched above, Extreme above, Stretched below and Extreme below (below levels are negative). Buffer 9: the MA. Buffer 10: the state (2 Extreme above, 1 Stretched above, 0 normal, -1 Stretched below, -2 Extreme below).
Notes
- The same rules as the free TradingView script Moving Average Deviation Rate (Kairi). The MetaTrader version draws the distance below the chart and does not draw the MA on the price chart.
- Stretched and Extreme describe the distance compared with the chart's own past. They do not say when or whether price returns to the MA.
- A charting tool, not financial advice.
Common questions
Which platforms and brokers do your indicators work with?
MetaTrader indicators come with both the MT4 and the MT5 version in one download. TradingView scripts run on TradingView. Each product page lists its platforms.
The MetaTrader versions run in any broker's standard MT4 or MT5 terminal, on any symbol and timeframe. There is no broker lock-in.
Do your indicators repaint?
It depends on the tool, and each product page says how its marks behave. Arrows and marks that are checked at the close of the bar stay where they are once printed.
Tools that find swing highs and lows with ZigZag can only confirm a swing after price has moved away from it, so the newest swing can still move until then. Lines and oscillators update on the bar that is still forming, like any indicator, and are final when that bar closes.
What exactly do I get, and in what format?
MetaTrader products: you download a single .zip containing the compiled builds — .ex4 for MT4 and .ex5 for MT5.
TradingView products run on your TradingView account — there is nothing to download.
Paid products include updates for as long as they are offered. Free tools stay free.
How is it delivered?
Free tools download straight from this site with no signup. Free TradingView scripts are added from their TradingView page.
Paid MetaTrader tools: the download is ready right after checkout through our payment provider, Whop.
Is it a one-time purchase or a subscription?
Each product page says what you get and for how long. Access sold for a fixed period ends when the period ends and does not renew unless the page clearly says it is a subscription. Prices are in USD. See our Terms.
Can I get a refund?
Paid products are digital and delivered immediately, so they are not refundable once delivered — except when a product does not work as described and we cannot fix it. Email us within 14 days of purchase and we will refund it.
Rights your local consumer law gives you are not affected. Full details are in our Terms.
Do you offer support?
Yes, by email: questions about how a tool works, installation problems, bugs, payments and refunds. Each product page and this FAQ cover installation and use, so most answers are already there.
We do not offer one-to-one setup sessions or trading advice.
See all FAQs