MA PRO USER MANUAL

1. Overview

MA Pro is a professional-grade Moving Average overlay indicator for the TradingView platform. It provides seven independent, fully configurable MA slots, each capable of plotting any of 19 distinct Moving Average types on any timeframe — all simultaneously on the same chart.

Every slot operates independently: it has its own source series, MA type, period, timeframe, line weight, line colour, and label colour. Slots can be freely combined — for example, a fast JMA on the chart timeframe alongside a slow SMA on the daily timeframe — to build any multi-MA layout imaginable.

A shared Parameters group provides fine-tuned control over the algorithms that require additional configuration: ALMA (offset and sigma), LSMA (regression offset), JMA (phase), and AZLEMA (adaptive mode).

 

1.1  What MA Pro Does

MA Pro plots up to seven moving averages simultaneously on the price chart. For each enabled slot, it:

  • Computes the selected MA type on the configured source and period.
  • Optionally fetches the MA value from a higher or lower timeframe via request.security.
  • Renders the result as a coloured line directly on the price chart (overlay mode).
  • Draws a price-pinned label at the right edge of the chart identifying the MA type, period, and timeframe.

 

1.2  What MA Pro Is Not

MA Pro does not generate buy or sell signals. It does not fire alerts. It does not include oscillators, divergence detection, trend scoring, or any analysis beyond the moving average values themselves. It is a precision plotting tool for practitioners who want exact control over how their MAs are displayed.

 

1.3  Compatibility

Platform TradingView (any plan)
Pine Script Version v6
Overlay Yes — renders directly on the price chart
MA Slots 7 fully independent slots
Asset Classes All — Stocks, ETFs, Forex, Crypto, Futures, Indices, Commodities
Chart Types All standard chart types

 

 

2. Installation

2.1  Adding MA Pro to Your Chart

From TradingView’s indicator search:

  • Open TradingView and navigate to any chart.
  • Click the Indicators button at the top of the chart (or press the / key).
  • In the search box, type “MA Pro” and press Enter.
  • Locate MA Pro in the results and click it. The indicator loads immediately as an overlay on your price chart.
  • The Settings panel opens automatically on first load. All seven slots are disabled by default — enable the ones you want (see Section 3).
  • Click OK to confirm. MA Pro is now active.

 

2.2  Accessing Settings After Installation

  • Hover over the MA Pro label in the chart’s indicator list (left side of the screen, above the price chart).
  • Click the gear icon (⚙) that appears to the right of the label.
  • Alternatively, double-click any MA line on the chart.

 

2.3  Resetting to Defaults

Open Settings, click the three-dot menu (⋯) in the top-right corner of the Settings panel, and select “Reset settings to default.” This restores all seven slots to their factory defaults (all disabled) and resets the Parameters group to their original values.

💡  Quick Start

To immediately see something on the chart after adding MA Pro:

1.  Open Settings and check Enable MA #1 Plot.
2.  Leave all other settings at their defaults (EMA, period 6, chart timeframe, white line).
3.  Click OK. A white EMA 6 line appears immediately on your price chart.

Enable additional slots as needed, configuring each independently.

 

 

 

3. Settings Reference

MA Pro’s settings are divided into nine groups in the Settings panel: seven MA slot groups (1st through 7th Moving Average), one Labels group, and one Parameters group. The structure is identical across all seven MA slots.

 

3.1  MA Slot Groups (1st – 7th Moving Average)

Each slot group is labelled by its ordinal (“1st. Moving Average”, “2nd. Moving Average”, etc.) and contains the following settings:

Setting Default Options / Range Description
Enable MA #N Plot Off On / Off Master toggle for this slot. When Off, the slot is fully inactive: no line is plotted, no label is drawn, and no calculation runs. When On, the MA is computed and rendered on the chart.
S (Source) close Any price source The input series used as the basis for the MA calculation. Defaults to close. Can be changed to open, high, low, hl2, hlc3, ohlc4, vwap, or any external indicator source via the source picker.
MA (Type) Slot-dependent 19 types (see §4) Selects the Moving Average algorithm for this slot. Slots 1–3 default to EMA; slots 4–7 default to SMA. See Section 4 for a complete description of every available type.
L (Period) Slot-dependent Integer ≥ 1 The lookback period for the MA calculation. Default values by slot: 6, 12, 24, 20, 50, 100, 200. Note: SWMA ignores this setting — it always uses a fixed length of 4.
TF (Timeframe) “” (chart) Any TradingView timeframe string The timeframe from which the MA value is fetched via request.security. An empty string (the default) uses the current chart’s timeframe. Enter any valid TradingView timeframe string (e.g. “60”, “D”, “W”) to pull the MA from that timeframe instead.
Plot Weight 2 1 – 4 The line thickness of the plotted MA. 1 is the thinnest line; 4 is the thickest. Adjust to visually distinguish overlapping MAs.
Plot Color White (#FFFFFF) Any color The colour of the MA line on the chart.
Label Text Color Black (#000000) Any color The colour of the text inside the label that appears at the right edge of the chart for this MA. The label background uses the Plot Color.

 

⚠️  SWMA and Period

The Symmetrically Weighted MA (SWMA) uses a fixed internal length of 4 bars regardless of the period (L) you enter in the settings. The L field has no effect when SWMA is selected. This is a Pine Script built-in constraint.

 

3.2  Labels Group

The Labels group contains a single setting that controls the global label visibility:

Setting Default Options / Range Description
Show Labels On (hardcoded) On only Labels are currently always enabled. The label group is reserved for a future user-configurable toggle. When enabled, each active MA slot displays a price-pinned label at the rightmost bar of the chart showing the MA type, period, and timeframe (e.g. “EMA 6 (60)” or “SMA 200 ()”).

 

3.3  Parameters Group

The Parameters group contains shared configuration for four MA types that require additional inputs beyond a simple source and period. These settings apply globally to all slots using the respective algorithm.

 

Setting Default Options / Range Description
Linear Regression Offset 0 Integer ≥ 0 Applies to LSMA and SSMA. Shifts the linear regression fit forward or backward in time by the specified number of bars. 0 means no offset — the standard endpoint-anchored regression. Increasing this value projects the regression line further to the right, which can be used to anticipate future price targets along the fitted line.
ALMA Offset 0.85 0.00 – 1.00, step 0.05 Applies to ALMA only. Controls the centre of gravity of the Gaussian weighting window. 0 weights the oldest data most heavily (maximum lag, maximum smoothness). 1 weights the most recent data most heavily (minimum lag, less smooth). The default of 0.85 is the commonly used value that balances responsiveness with smoothness.
ALMA Sigma 6 Integer ≥ 0 Applies to ALMA only. Controls the width of the Gaussian bell curve used to assign weights across the lookback window. A higher sigma value produces a broader, flatter weight distribution (more like a simple average). A lower sigma value concentrates weight more tightly around the offset point (sharper, more focused weighting).
JMA Phase 50 –100 to 100, step 1 Applies to JMA only. Adjusts the phase of the Jurik Moving Average, effectively controlling the balance between lag reduction and overshoot. Values below 0 increase smoothing at the cost of more lag. Values above 0 reduce lag at the cost of potential overshoot. 0 is a neutral phase; 50 (the default) is mildly responsive.
AZLEMA Adaptive Mode Cosine In-Phase & Quadrature, Cosine, Average Applies to AZLEMA only. Selects the Instantaneous Frequency Measurement (IFM) method used to calculate the adaptive period. “In-Phase & Quadrature” (IQ) uses a Hilbert transform-based approach. “Cosine” uses a cosine IFM approach. “Average” computes both and averages the result, which tends to be more stable. See Section 5 for a full explanation.

 

 

 

4. Moving Average Types Reference

MA Pro supports 19 Moving Average types. The following table lists each type by its selector code (as it appears in the settings), its full name, a summary of its algorithm, and practical notes for use.

Code Full Name Algorithm Summary Notes
SMA Simple Moving Average Arithmetic mean of the source over the lookback period. Each bar carries equal weight. The baseline MA. Maximum smoothness, maximum lag. Good for identifying broad trend direction and as a reference against which other MAs are measured.
EMA Exponential Moving Average Exponentially weighted average. More recent bars carry higher weight via a smoothing factor α = 2 / (period + 1). The most widely used MA. Faster to react than SMA but retains some smoothing. The default type for slots 1–3.
DEMA Double Exponential MA 2 × EMA(src, n) − EMA(EMA(src, n), n). Subtracts a lagged EMA from a doubled EMA to reduce lag. Significantly less lag than EMA. Prone to overshoot in volatile conditions. Useful on trending assets.
TEMA Triple Exponential MA 3×EMA − 3×EMA(EMA) + EMA(EMA(EMA)). Three layers of lag reduction. Minimum lag among the standard EMA family. Very reactive; can produce false signals in ranging markets. Use with confirmation.
WMA Weighted Moving Average Linearly weighted sum: most recent bar has weight n, oldest has weight 1. Normalised by the sum of weights. Less lag than SMA, more than EMA. The linear weighting gives a clean, predictable response curve.
VWMA Volume Weighted MA Price × Volume summed over the period, divided by total volume. Each bar weighted by its volume. Reflects where price has spent the most volume. Divergence between VWMA and EMA/SMA often signals accumulation or distribution. Requires volume data.
HMA Hull Moving Average WMA(2×WMA(src, n/2) − WMA(src, n), √n). Uses the difference of two WMAs plus a square-root-period smoothing pass. Almost eliminates lag while remaining smooth. One of the best all-round low-lag MAs. Performs well across trending and volatile conditions.
LSMA Least Squares MA The endpoint value of a linear regression fit over the lookback period. Also known as LinReg. Fits a straight line to recent price action and reports its value. Responds to trend direction changes quickly. The Linear Regression Offset parameter shifts the endpoint forward in time.
RMA Relative MA EMA variant with α = 1 / period (Wilder smoothing). Slower decay than standard EMA. Used internally by RSI and ATR calculations. Smoother and slower than a same-period EMA. Useful as a stable trend filter.
ALMA Arnaud Legoux MA Gaussian-windowed weighted average. The bell curve is positioned by the Offset parameter and shaped by the Sigma parameter. Combines smoothness with low lag by intelligent weight distribution. Highly configurable via Offset and Sigma. See §3.3 for parameter guidance.
TMA Triangular MA SMA of a SMA. Two successive simple averages over the same period. Double-smoothed SMA. Very smooth but high lag. Useful as a long-term baseline reference that is resistant to noise.
DWMA Double Weighted MA WMA of a WMA over the same period. Two successive linear-weighted passes. Smoother than a single WMA with somewhat more lag. A less-common but useful middle ground between WMA and TMA.
SMMA Smoothed MA Wilder-style recursive smoothing: SMMA = (SMMA_prev × (n−1) + src) / n. First value is SMA. Equivalent to RMA in mathematical form, but initialised via SMA. Very smooth, very slow. The MA used in classic Alligator indicators.
MAV Modified Moving Average Recursive: MAV = MAV_prev + (src − MAV_prev) / n. Initialises to the source value on first bar. Also known as the DiNapoli Preferred Stochastic MA. Equivalent in form to Wilder smoothing but initialises cleanly to the first source value rather than producing a spike.
ZLEMA Zero Lag Exponential MA EMA applied to src + (src − src[(n−1)/2]). The error-correction term shifts the input series forward to cancel EMA lag. Reduces EMA lag to near-zero by correcting the input before smoothing. Fast and responsive. Can amplify noise in choppy markets.
AZLEMA Adaptive Zero Lag EMA ZLEMA variant with an adaptive period determined by an Instantaneous Frequency Measurement algorithm instead of a fixed period. Self-tuning: the period automatically contracts when price is trending fast and expands when price is range-bound. See Section 5 for a full explanation. Controlled by the AZLEMA Adaptive Mode parameter.
JMA Jurik Moving Average Three-stage adaptive filter: (1) adaptive EMA, (2) Kalman-style phase correction, (3) Jurik adaptive filter. Uses the Jurik Volatility Factor to dynamically adjust smoothing. Regarded as one of the smoothest low-lag MAs available. Adapts to volatility in real time. Controlled by the JMA Phase parameter. Computationally intensive compared to simple MAs.
SSMA Smooth Simple MA Two-pole Butterworth-style filter seeded from a linear regression endpoint. Coefficients derived from exponential decay and cosine of a frequency term. A sophisticated smoothing filter that suppresses noise more aggressively than a standard SMA while retaining trend-following capability. Uses the Linear Regression Offset parameter for the seed value.
SWMA Symmetrically Weighted MA Fixed 4-bar weighted average with weights [1/6, 2/6, 2/6, 1/6]. Period setting is ignored. Extremely short, symmetric, and smooth over 4 bars. Useful as a micro-smoothing layer applied to a fast source. Period cannot be changed — always 4 bars.

 

 

 

5. Adaptive Algorithms In Depth

Two MA types in MA Pro — AZLEMA and JMA — use adaptive mechanisms that automatically adjust their effective period in response to market conditions. This section explains how each mechanism works and how to configure it effectively.

 

5.1  AZLEMA: The Adaptive Period System

AZLEMA (Adaptive Zero Lag EMA) replaces the fixed period of a standard ZLEMA with a dynamically computed period derived from an Instantaneous Frequency Measurement (IFM) algorithm. The IFM estimates the dominant cycle length present in the current price data.

The adaptive period is bounded between a minimum of 4 bars and a maximum of 60 bars. When price is trending strongly (short cycle), the period contracts toward 4, making the MA very responsive. When price is range-bound (long, ambiguous cycle), the period expands, increasing smoothing and reducing false signals.

 

5.1.1  Adaptive Mode Options

The AZLEMA Adaptive Mode parameter selects which IFM method is used to estimate the dominant cycle:

Mode Description
In-Phase & Quadrature Uses a Hilbert-transform inspired approach that decomposes price into in-phase and quadrature components. The instantaneous phase angle between them is accumulated until it completes one full cycle (2π radians), which defines the cycle period. Sensitive and fast-responding.
Cosine Estimates the dominant cycle by measuring the ratio of sum-of-squared half-bar differences to sum-of-squared combined differences, then applying an arctangent transform. The accumulated phase completes a cycle at 2π. Generally smoother than I-Q alone. This is the default mode.
Average Computes both IQ and Cosine periods and uses their arithmetic mean. This reduces the influence of measurement noise in either individual method. Recommended when neither I-Q nor Cosine alone produces satisfactory results.

 

💡  Choosing an Adaptive Mode

Cosine (default) is the best starting point for most assets and timeframes — it is stable and consistent. In-Phase & Quadrature is faster to respond to cycle shifts but can produce more erratic period changes in noisy data. Average is the safest choice when the Cosine and IQ estimates disagree significantly, as it dampens outlier readings from either method.

 

5.2  JMA: The Jurik Volatility Factor

JMA (Jurik Moving Average) uses a three-stage filtering process in which the smoothing coefficient adapts to recent price volatility in real time. The mechanism works as follows:

  • The indicator tracks an upper and lower adaptive band around price.
  • On each bar, the distance from price to each band (del1, del2) is measured. The larger distance becomes the current price volatility.
  • A 65-bar rolling sum of this volatility is maintained (sumVolat) and averaged (avgVolat).
  • The ratio of current volatility to average volatility (relVolat) drives a power function that produces the Jurik Volatility Factor (kv).
  • kv modulates the smoothing coefficient in all three JMA stages. High volatility produces aggressive smoothing; low volatility (strong trend) produces a faster-tracking response.

 

5.2.1  JMA Phase

The Phase parameter controls the balance between lag reduction and overshoot in Stage 2 of the JMA algorithm (the Kalman-style correction stage). The relationship is:

Phase Value Effect
−100 Maximum smoothing. Significant lag. Best for very noisy data where smooth output matters more than responsiveness.
−50 to 0 Increased smoothing, moderate lag reduction.
0 Neutral phase. Balanced lag and smoothness.
50 (default) Mildly responsive. A good general-purpose starting point.
100 Maximum lag reduction. Can overshoot on sharp reversals. Best for fast, trending markets.

 

 

 

6. Multi-Timeframe Operation

Every MA slot has a TF (Timeframe) field that controls whether the MA is computed on the current chart’s timeframe or fetched from a different timeframe via TradingView’s request.security mechanism.

 

6.1  How Timeframe Fetching Works

When a TF value is set for a slot, MA Pro computes the MA on the chart’s own bars first, then passes that value through request.security to retrieve the equivalent calculation from the specified higher (or lower) timeframe. The result is resampled back onto the chart’s bars.

This means a weekly SMA 200 can be plotted on a 15-minute chart — the weekly value updates each time a new weekly bar closes, and it paints as a horizontal step on the intraday chart until the next week begins.

 

6.2  Timeframe String Format

TradingView uses a compact string format for timeframes:

TF String Meaning
(empty) Current chart timeframe. This is the default.
1, 3, 5, 15, 30, 45 Minutes (1-minute, 3-minute, 5-minute, etc.)
60, 120, 240 Hours (1-hour = 60, 2-hour = 120, 4-hour = 240)
D Daily
W Weekly
M Monthly

 

⚠️  Repainting and Higher-Timeframe Data

MA Pro uses lookahead_off (the default) when fetching higher-timeframe data, meaning higher-timeframe values only update when their bar closes. This is the safest setting for historical accuracy.

A daily MA plotted on an intraday chart will display the previous day’s closing value throughout the current day, updating only when the current day’s bar closes.

 

6.3  Timeframe Constraints

The TF field must contain a timeframe that is equal to or higher than the current chart timeframe. Requesting a lower timeframe than the chart is not supported by TradingView’s request.security and will produce no additional data.

 

6.4  Label Display with Timeframe

When a TF value is set, the label at the right edge of the chart reflects it. A slot configured as EMA, period 20, TF 60 will display the label “EMA 20 (60)”. A slot with an empty TF will display “EMA 20 ()” — this is intentional and identifies the slot as operating on the chart’s native timeframe.

 

 

 

7. Labels

When a slot is enabled and Show Labels is active (the current default), MA Pro draws a label at the rightmost bar of the chart to identify each active MA.

 

7.1  Label Content

Each label contains three pieces of information in the format:

<MA Type>  <Period>  (<Timeframe>)

Examples:

  • EMA 12 (D) — Exponential MA, period 12, daily timeframe.
  • JMA 7 () — Jurik MA, period 7, chart timeframe (empty string).
  • SMA 200 (W) — Simple MA, period 200, weekly timeframe.
  • SWMA 4 (60) — Symmetrically Weighted MA on the hourly timeframe. The period shown is the configured value, though SWMA always uses 4 bars internally.

 

7.2  Label Appearance

The label background colour matches the slot’s Plot Color setting. The label text colour matches the slot’s Label Text Color setting. This allows each slot to be visually associated with its line colour.

Labels are positioned horizontally at bar_index + 3 (three bars to the right of the last bar), making them visible just beyond the chart’s right edge in the label area. They are price-pinned to the MA’s current value, so they float at the exact price level of the MA.

 

7.3  Label Behaviour on Bar Updates

Labels are deleted and redrawn on every new bar (barstate.islast). Only one label instance per slot is alive at any time — the previous instance is removed before the new one is created. This ensures no label accumulation over time.

 

 

 

8. Shared Parameters — Detailed Guidance

The four shared parameters in the Parameters group affect specific MA types globally across all seven slots. This section provides practical guidance on how to configure each one effectively.

 

8.1  Linear Regression Offset (LSMA & SSMA)

The Linear Regression Offset shifts the regression endpoint forward in time. At 0, the LSMA reports the value of the best-fit line at the current bar — this is the standard behaviour. At a positive offset, the line is extended forward, reporting where the linear trend would project to N bars in the future.

💡  Practical Use of LR Offset

Offset = 0: Standard LSMA/SSMA. The line closely tracks price and is often used as a trend-following MA.

Offset = 1–5: Mild forward projection. The line leads price slightly, which can be used to identify where a linear trend is pointing.

Offset = 10+: Aggressive projection. Use with caution — linear extrapolation over long distances amplifies the error in the assumed trend direction.

 

8.2  ALMA Offset (0.00 – 1.00)

The ALMA Offset positions the centre of the Gaussian weighting bell curve within the lookback window. Lower values place the peak weight on older bars (more lag, less noise sensitivity). Higher values place it on recent bars (less lag, more noise sensitivity).

The default of 0.85 is the most widely used value in the literature. For slower, smoother ALMA behaviour, try 0.60–0.75. For a more aggressive, lower-lag ALMA, try 0.90–0.95.

 

8.3  ALMA Sigma (≥ 0)

Sigma controls the spread of the Gaussian bell curve. A higher sigma produces a wider, flatter distribution — essentially spreading weight more evenly across the window, making the ALMA behave more like an SMA. A lower sigma concentrates the weight tightly around the offset point.

The default of 6 is a general-purpose starting point. For noisier assets, increase sigma. For cleaner, trending assets, decrease it toward 2–4.

 

8.4  JMA Phase (–100 to 100)

See Section 5.2.1 for the full phase table. Key practical points:

  • The phase setting only affects JMA. No other MA type uses it.
  • Negative values are valid and produce a more heavily smoothed output. The Phase input accepts the full range from −100 to 100.
  • Changes to Phase take effect immediately on all active JMA slots simultaneously.
  • If multiple slots use JMA with different goals (e.g. a fast JMA and a slow JMA), they will share the same phase. For differentiated JMA behaviour, consider using a JMA in one slot and an AZLEMA or EMA in another.

 

8.5  AZLEMA Adaptive Mode

See Section 5.1.1 for the full mode descriptions. The mode applies to all slots using AZLEMA. If multiple slots use AZLEMA simultaneously, they all share the same adaptive mode setting.

 

 

 

9. Recommended Setups & Workflows

The following configurations are starting-point templates. Adapt period values, colours, and slot assignments to your own style and instrument characteristics.

 

9.1  Classic EMA Ribbon (Momentum Trading)

Goal: Visualise EMA alignment across multiple periods as a momentum filter. Long when all EMAs are stacked bullishly; look for shorts when they compress or invert.

  • Slot 1: EMA, 8, white, chart TF
  • Slot 2: EMA, 21, light blue, chart TF
  • Slot 3: EMA, 50, blue, chart TF
  • Slot 4: EMA, 100, dark blue, chart TF
  • Slot 5: EMA, 200, orange, chart TF
  • Slots 6–7: Disabled

 

9.2  Dual Timeframe Structure Map

Goal: See where the daily and weekly trend structures sit while trading intraday. Useful for avoiding counter-trend positions on the wrong side of a major MA.

  • 12, chart TF — fast intraday reference
  • Slot 2: EMA, 50, chart TF — medium intraday trend
  • Slot 3: SMA, 20, daily TF (TF = “D”) — daily 20 SMA
  • Slot 4: EMA, 50, daily TF (TF = “D”) — daily 50 EMA
  • Slot 5: SMA, 200, daily TF (TF = “D”) — daily 200 SMA
  • Slot 6: SMA, 50, weekly TF (TF = “W”) — weekly 50 SMA
  • Slot 7: Disabled or weekly 200 SMA if needed
💡  Visual Tip

Use thicker lines (Plot Weight 3–4) for higher-timeframe MAs so they stand out visually against the chart. Use weight 1–2 for fast intraday MAs to avoid visual clutter.

 

9.3  Low-Lag Adaptive Setup (Trending Markets)

Goal: Maximise responsiveness to trend changes with adaptive and low-lag algorithms.

  • Slot 1: JMA, 7, Phase = 100 (maximum responsiveness), chart TF — ultra-fast signal
  • Slot 2: AZLEMA, Adaptive Mode = Cosine, chart TF — adaptive trend confirmation
  • Slot 3: HMA, 20, chart TF — smooth low-lag confirmation line
  • Slot 4: EMA, 50, chart TF — baseline reference
  • Slots 5–7: Disabled or used for higher-TF references

 

9.4  Noise-Filtered Swing Trade Setup

Goal: Maximum smoothness for identifying swing levels and avoiding noise-driven signals. Accept more lag in exchange for cleaner lines.

  • Slot 1: JMA, 14, Phase = −50 (heavy smoothing), chart TF
  • Slot 2: SSMA, 21, chart TF — Butterworth-smoothed reference
  • Slot 3: ALMA, 34, Offset = 0.75, Sigma = 4, chart TF — Gaussian-weighted slow line
  • Slot 4: TMA, 50, chart TF — double-smoothed SMA for macro trend
  • Slots 5–7: Disabled

 

9.5  Volume-Context Setup (Crypto & Liquid Equities)

Goal: Combine volume-weighted and standard MAs to identify divergences between price momentum and volume-backed value.

  • Slot 1: EMA, 20, chart TF — standard price MA
  • Slot 2: VWMA, 20, chart TF — volume-weighted equivalent
  • Slot 3: EMA, 50, chart TF
  • Slot 4: VWMA, 50, chart TF
  • Slots 5–7: Higher-TF references as needed

Divergence between the EMA and VWMA of the same period indicates that volume is not proportional to price movement — potentially signalling accumulation (VWMA above EMA) or distribution (VWMA below EMA).

 

 

 

10. Frequently Asked Questions

Why is nothing showing on the chart after I add MA Pro?

All seven slots are disabled by default (Enable MA #N Plot = Off). Open the Settings panel, check “Enable MA #1 Plot” (or whichever slot you want), and click OK. A line will appear immediately.

 

Why does the SWMA line look the same regardless of what period I set?

SWMA (Symmetrically Weighted Moving Average) is a Pine Script built-in that always uses exactly 4 bars with fixed weights [1/6, 2/6, 2/6, 1/6]. The period (L) field has no effect on SWMA. This is a constraint of the underlying function, not a bug in MA Pro.

 

Why does my ALMA Offset not change when I adjust it by 1?

The ALMA Offset step has been set to 0.05, reflecting the fact that the offset is a value between 0.00 and 1.00. If you are entering values manually, type the decimal directly (e.g. “0.75”). The stepper increments by 0.05 per click.

 

Can I use a negative JMA Phase?

Yes. The JMA Phase parameter accepts values from −100 to 100. Negative values increase smoothing at the cost of additional lag. The full range is intentionally exposed to allow heavy-smoothing configurations for noisy data.

 

What happens if I set TF to a timeframe lower than my chart?

TradingView’s request.security does not support fetching lower-timeframe data in this context. If you enter a TF lower than your chart’s timeframe, the value returned will simply be the chart-timeframe value. No error is thrown, but no additional detail is gained.

 

Can I run two JMA slots with different phase values?

Not directly — the JMA Phase parameter in the Parameters group is shared across all JMA slots. If you need two JMAs with different phase behaviour, consider pairing one JMA slot with another low-lag MA type (such as AZLEMA or HMA) to approximate the differentiation.

 

Why does AZLEMA sometimes behave similarly across different Adaptive Mode settings?

On strongly trending or low-noise instruments, both the IQ and Cosine IFM methods converge on similar period estimates, so the visual difference between modes may be small. The distinction is most apparent on instruments with clear cyclical or oscillating price behaviour.

 

The label shows “EMA 20 ()” — what does the empty parenthesis mean?

The empty parenthesis indicates that this slot is operating on the current chart’s timeframe (TF = empty string, the default). This display format is intentional — a slot fetching from the daily timeframe would show “EMA 20 (D)” for comparison.

 

Why does the higher-TF MA update in steps rather than continuously?

This is expected behaviour for higher-timeframe data in TradingView. A daily MA plotted on a 15-minute chart, for example, holds its value constant throughout the day and steps to a new value only when the daily bar closes. The MA is only as granular as its source timeframe.

 

Can I use MA Pro together with other indicators?

Yes. MA Pro is a standard overlay indicator with no unusual resource constraints beyond the seven request.security calls (one per active slot). It is fully compatible with all other TradingView indicators, signals, and strategies.

 

How many of the seven slots can I run simultaneously?

All seven. Each enabled slot adds one request.security call to the indicator’s resource usage. On all TradingView plans that support custom indicators, running all seven slots simultaneously is well within the platform’s limits.

 

Does changing the Parameters affect slots that do not use those MA types?

No. The LR Offset only affects LSMA and SSMA slots. ALMA Offset and Sigma only affect ALMA slots. JMA Phase only affects JMA slots. AZLEMA Adaptive Mode only affects AZLEMA slots. Parameters for MA types not in use are simply ignored.

 

 

 

11. Appendix: Quick Reference Card

11.1  Slot Default Values

Setting Default Options / Range Description
Slot 1 Off EMA Period: 6, TF: chart, Weight: 2, Color: White
Slot 2 Off EMA Period: 12, TF: chart, Weight: 2, Color: White
Slot 3 Off EMA Period: 24, TF: chart, Weight: 2, Color: White
Slot 4 Off SMA Period: 20, TF: chart, Weight: 2, Color: White
Slot 5 Off SMA Period: 50, TF: chart, Weight: 2, Color: White
Slot 6 Off SMA Period: 100, TF: chart, Weight: 2, Color: White
Slot 7 Off SMA Period: 200, TF: chart, Weight: 2, Color: White

 

11.2  Parameter Defaults

Setting Default Options / Range Description
Linear Regression Offset 0 Integer ≥ 0 Affects LSMA and SSMA
ALMA Offset 0.85 0.00 – 1.00 (step 0.05) Affects ALMA only
ALMA Sigma 6 Integer ≥ 0 Affects ALMA only
JMA Phase 50 −100 to 100 (step 1) Affects JMA only
AZLEMA Adaptive Mode Cosine IQ / Cosine / Average Affects AZLEMA only

 

11.3  MA Type At-a-Glance

Code Full Name Lag Smoothness Best For
SMA Simple MA High High Baseline reference
EMA Exponential MA Medium Medium General-purpose trend
DEMA Double EMA Low Medium Trending markets
TEMA Triple EMA Very Low Low Fast trending only
WMA Weighted MA Medium-Low Medium Balanced response
VWMA Volume Weighted MA Medium Medium Volume divergence
HMA Hull MA Very Low High All-round low-lag
LSMA Least Squares MA Low Medium Trend endpoints
RMA Relative MA High Very High Slow trend filter
ALMA Arnaud Legoux MA Configurable Configurable Configurable precision
TMA Triangular MA Very High Very High Long-term baseline
DWMA Double Weighted MA High High Smooth WMA
SMMA Smoothed MA High Very High Slow trend, Alligator
MAV Modified MA High High DiNapoli setups
ZLEMA Zero Lag EMA Very Low Medium Ultra-fast EMA
AZLEMA Adaptive ZLEMA Adaptive Adaptive Self-tuning trends
JMA Jurik MA Low High Volatile/noisy data
SSMA Smooth Simple MA Medium Very High Noise suppression
SWMA Symm. Weighted MA Low High Micro-smoothing (4-bar)