How Technical Indicators Are Calculated: From Price and Volume to a Plotted Line

The journey from raw OHLC candles to the smooth line or oscillator on your chart.

In short: Every indicator is just a formula that takes a window of past price or volume data — usually open, high, low, close and volume — and reduces it to one or more numbers that are plotted bar by bar.

It all starts with OHLCV

Every indicator on your chart is built from the same raw ingredients: the open, high, low and close of each bar, plus volume. Nothing else. A moving average averages the closes; RSI compares up-closes to down-closes; ATR measures the high-to-low range; VWAP weights price by volume. When you understand that an indicator is only a recipe applied to these five numbers, it stops being a black box. There is no hidden data feed and no secret — just arithmetic repeated on every new bar as it forms.

The look-back window

Almost every indicator uses a look-back period — the '14' in RSI(14) or the '20' in a 20-day moving average. This window decides how many past bars the formula sees. A short window reacts fast but is noisy; a long window is smooth but slow. On a Nifty daily chart, a 20-day average captures roughly a trading month; a 50-day captures a quarter. The window is the single most important choice you make, because it sets the trade-off between responsiveness and reliability that defines how the indicator behaves.

Smoothing: turning jagged data into a line

Raw price is jagged, so most indicators smooth it. The three common methods are the simple moving average (equal weight to every bar), the exponential moving average (more weight to recent bars), and Wilder's smoothing (a slower exponential method used in RSI, ATR and ADX). Smoothing is what turns a cloud of dots into a readable curve, but it always adds lag — the smoother the line, the further behind price it sits. Every indicator is a compromise between smoothness and lag.

Two families: overlays and oscillators

Once the maths is done, the result is plotted in one of two ways. Overlays sit on the price chart in the same units as price — moving averages, Bollinger Bands, VWAP, Supertrend. Oscillators sit in a sub-panel below, on their own scale — RSI and Stochastic on 0 to 100, MACD around a zero line, CCI around zero. Knowing which family an indicator belongs to tells you how to read it: overlays for levels and trend, oscillators for momentum and extremes.

Normalisation and bounded scales

Some formulas deliberately squeeze their output into a fixed range so it is easy to compare across instruments and time. RSI and Stochastic are normalised to 0–100; Williams %R to −100 to 0. This is why an RSI of 70 means the same 'stretched' thing on Nifty as on Reliance, even though their prices differ by thousands of rupees. Unbounded indicators like MACD or CCI have no such ceiling, so their values are only meaningful relative to that instrument's own history.

Why the same indicator can look different

Two charts can show 'RSI(14)' yet not match, because platforms differ in small ways: which smoothing they use, whether the current bar is included, how they handle the first few bars before the window fills, and whether they compute on close or on live price. These differences are usually tiny, but they explain why your broker's RSI and TradingView's RSI can disagree by a point. It also reminds you that an indicator value is a construction, not a fact of nature.

Key takeaways

  • Indicators are formulas applied to OHLCV data — nothing more exotic than that.
  • The look-back period sets the core trade-off between speed and smoothness.
  • Smoothing makes lines readable but always introduces lag.
  • Overlays share price's scale; oscillators live on their own bounded or centred scale.
  • Small computational differences explain why platforms can show slightly different values.

FAQ

What data do technical indicators use?
Almost all use only the open, high, low, close and volume of each bar. From those five numbers, formulas derive moving averages, oscillators, bands and everything else you see on a chart.
What is a look-back period?
It is the number of past bars an indicator's formula considers — the 14 in RSI(14). A shorter look-back reacts faster but is noisier; a longer one is smoother but lags more.
Why do indicators lag price?
Because they average or smooth past data. Any process that blends several past bars into one value must sit behind the newest price, and more smoothing means more lag.
What is the difference between an overlay and an oscillator?
An overlay is plotted on the price chart in price units, like a moving average. An oscillator is plotted in a separate panel on its own scale, like RSI on 0 to 100.
Why does RSI differ between my broker and TradingView?
Platforms can use slightly different smoothing methods, handle the first bars differently, or include the live bar versus only closed bars. These small choices cause minor value differences.
Do I need to know the maths to use an indicator?
Not the full derivation, but understanding roughly what it measures and which inputs it uses prevents misreading it. Knowing RSI is a ratio of gains to losses, for example, explains why it stays high in strong trends.
What is smoothing in an indicator?
Smoothing blends several bars so the plotted line is less jagged. Simple, exponential and Wilder's methods differ in how much weight they give recent versus older data.
Are indicators calculated on Nifty the same as on any stock?
Yes. The formulas are identical regardless of instrument. Only the input prices change, which is why bounded indicators like RSI let you compare Nifty and a single stock on the same 0–100 scale.

Published 14 January 2026. Educational content only — not investment advice.

Educational content only — not investment advice.