Charting methodology
How Charting calculations are produced
These definitions apply to the material derived values shown on MarketDeck Charting. Calculations use stored NSE daily OHLCV observations unless a page identifies another stored series. A displayed value is not a live exchange quote.
Method version: CH-METHOD-1.0 · effective and method-reviewed . It changes only when an interpretation-sensitive indicator formula, window, denominator, universe rule or assumption changes—not for an ordinary deploy.
Price and trend
- Price change and return
- Change = current stored close − comparison close. Return (%) = change ÷ comparison close × 100. The comparison period is named beside the output. Currency change is in the instrument's quoted currency; return is a percentage. A zero or missing comparison close produces unavailable, not zero.
- Simple moving average (SMA)
- Arithmetic mean of the last n closes. Standard windows are named in the interface, including 20, 50 and 200 sessions. Fewer than n valid observations produces unavailable.
- Exponential moving average (EMA)
- SMA-seeded recursive average with smoothing factor 2 ÷ (n + 1). It uses closes and retains price units. MACD uses 12- and 26-session EMAs.
- Relative Strength Index (RSI)
- 100 − 100 ÷ (1 + average gain ÷ average loss), using Wilder smoothing over 14 sessions. Units are index points from 0 to 100; a completely flat valid window is 50.
- MACD
- MACD line = EMA(12) − EMA(26); signal = EMA(9) of that line; histogram = MACD − signal. All three retain price units.
- Bollinger Bands
- Middle = SMA(20); upper/lower = middle ± 2 × the 20-session population standard deviation of close. Band values retain price units.
Range, momentum and volume
- True range and ATR
- True range is the maximum of high − low, |high − prior close| and |low − prior close|. ATR is its 14-session Wilder-smoothed value and retains price units.
- ADX and directional indicators
- Positive and negative directional movement are divided by ATR and expressed as +DI and −DI percentages. ADX is the 14-session Wilder average of 100 × |+DI − −DI| ÷ (+DI + −DI). Zero denominators remain unavailable.
- Stochastic oscillator
- Raw %K = 100 × (close − 14-session lowest low) ÷ (14-session highest high − lowest low), then smoothed over 3 sessions; %D is its 3-session SMA. A valid flat range is represented as 50.
- CCI
- Typical price = (high + low + close) ÷ 3. CCI = (typical price − SMA(20)) ÷ (0.015 × 20-session mean absolute deviation). A valid zero-deviation window is 0.
- Williams %R
- −100 × (highest high − close) ÷ (highest high − lowest low) over the displayed window. Units run from −100 to 0; a zero range is unavailable.
- Aroon
- Aroon Up/Down = 100 × (25 − sessions since the most recent 25-session extreme) ÷ 25, evaluated with the current bar plus 25 preceding bars. Units run from 0 to 100.
- On-balance volume
- Cumulative signed volume: volume is added when close rises, subtracted when close falls and unchanged when close is flat. Units are the source volume units.
Overlay calculations
- Supertrend
- Uses 10-session ATR and a multiplier of 3 around the high/low midpoint, with bands carried forward according to the prior close and trend state. It retains price units.
- Anchored VWAP
- Cumulative Σ[typical price × volume] ÷ Σ[volume] from the selected anchor, where typical price = (high + low + close) ÷ 3. It does not silently reset each day. Missing or zero cumulative volume is unavailable.
- Parabolic SAR
- Trend-following stop-and-reverse series using a 0.02 acceleration step capped at 0.20. It retains price units.
- Ichimoku
- Conversion/base lines use 9- and 26-session high-low midpoints; spans use the conversion/base midpoint and the 52-session midpoint, displaced 26 sessions. The lagging line is not used in scans where that would introduce look-ahead.
- Pivot points
- Standard floor-trader pivots use the previous stored bar: pivot = (high + low + close) ÷ 3, with support and resistance derived from that pivot and the previous high/low range.
Relative strength, breadth and evaluation
- Mansfield relative strength
- First compute stock close ÷ benchmark close on matching dates. Mansfield RS is that ratio's percentage distance from its own 200-session SMA: (ratio ÷ SMA(200) − 1) × 100. Unmatched dates and insufficient history remain unavailable.
- Relative-strength leaderboard return
- (latest stored close ÷ stored close at the named lookback − 1) × 100. The denominator is the lookback close, not the latest close.
- Market breadth
- Participation (%) = qualifying instruments ÷ eligible instruments with sufficient stored observations × 100. Measures include above-SMA participation and 52-week highs/lows. The denominator is the eligible measured universe for that observation, not every listed security.
- Scan evaluation
- Forward return = (future close ÷ signal-date close − 1) × 100 for the named horizon. Mean, median and win rate use only eligible completed observations; coverage states completed observations ÷ eligible signals. Overlapping signals are disclosed and are not treated as independent evidence.
Data state, rounding and unavailable values
Inputs are stored historical observations and may lag an exchange or data vendor. Source timestamps and page-level data-state labels govern freshness. Values are calculated at full available precision and rounded only for display. Missing inputs, insufficient history, unmatched benchmark dates and invalid denominators are shown as unavailable; they are not replaced by zero or estimates. Corporate-action effects follow the stored price series supplied to the calculation.
Source and provenance register
- Charts, indicators and scan inputs — exchange observation / provider
- Stored NSE instrument OHLCV observations supplied through the identified market-data path. Charting derives overlays and indicators; the exchange or provider does not publish those derived readings.
- Index comparisons and breadth — exchange observation / historical archive
- Stored benchmark and constituent observations are aligned by date. Eligibility and missing-history rules determine the denominator; an unmatched date is not filled.
- Leaderboards, scans and historical evaluation — MarketDeck-derived
- Rules are evaluated against stored series using the formula, window and coverage shown. A ranking or historical result is not an exchange recommendation or independent provider research.
Source attribution identifies origin without granting redistribution rights. Charting exposes derived displays and the necessary interpretation context; it does not offer a bulk replacement for an upstream feed.
Date and freshness semantics
The method-review date above describes these definitions. Each chart, scan, leaderboard or breadth output keeps its own market/data as-of timestamp and historical window. A page publication or software deploy date cannot substitute for the latest stored observation. Cosmetic releases do not imply refreshed prices or research.
For suite-wide provenance and correction rules, see MarketDeck Research Standards and its public methodology change-history policy.