All indicators

CPR with MAs, Super Trend & VWAP

Jun 11, 2020

Static chart image
Support and ResistanceSignalsMoving AveragesVolatility

The CPR with MAs, Super Trend & VWAP indicator provides a comprehensive multi-indicator environment combining Central Pivot Range (CPR), standard pivot levels, and popular trend-following tools in a single workspace. This tool is designed to simplify chart analysis by overlaying key support and resistance levels across daily, weekly, and monthly timeframes alongside SMA, EMA, VWAP, and SuperTrend.

Usage

The Usage section focuses on how to leverage the various layers of the indicator for technical analysis:

  • Central Pivot Range (CPR): Used to identify the market's trend and potential support/resistance zones. A narrow range often suggests a potential breakout, while a wide range indicates consolidation.
  • Pivot Levels: The script plots up to three levels of support (S1-S3) and resistance (R1-R3) for Daily, Weekly, and Monthly intervals. Daily levels use straight lines, Weekly levels use cross symbols (+), and Monthly levels use circle symbols (o).
  • Trend Indicators: Enable the SMA, EMA, and VWAP to identify the primary trend direction and mean reversion points.
  • SuperTrend: Provides visual buy/sell signals via color-coded lines (Green for bullish, Red for bearish) and triangular plot shapes.

Details

This script calculates standard pivot points using the formula (High + Low + Close) / 3. The CPR consists of the Central Pivot, the Bottom Central (BC) level (High + Low) / 2, and the Top Central (TC) level calculated as (Pivot - BC) + Pivot. Higher timeframe data (Weekly/Monthly) is fetched using request.security, ensuring that traders can view long-term institutional levels while trading on lower intraday timeframes. The SuperTrend component utilizes Average True Range (ATR) to determine volatility-adjusted trend shifts.

Settings

Pivots & CPR

  • Plot CPR?: Toggles the display of the Central Pivot Range.
  • Daily/Weekly/Monthly Levels: Individual toggles for Pivot, S1/R1, S2/R2, and S3/R3 levels across different timeframes.

Moving Averages & VWAP

  • Plot SMA/EMA?: Toggles the Simple and Exponential Moving Averages.
  • SMA/EMA Length: Sets the lookback period for the calculations (Default: 50).
  • Plot VWAP?: Toggles the Volume Weighted Average Price.

SuperTrend

  • Plot Super Trend?: Toggles the SuperTrend line and trend arrows.
  • Factor: The multiplier used for the ATR calculation.
  • Length: The ATR period used for volatility measurement.

FAQ

How do I access the CPR with MAs, Super Trend & VWAP? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Can I use multiple timeframes at once? Yes, the script allows you to simultaneously plot Daily, Weekly, and Monthly pivot levels on a single chart to identify "confluence zones" where multiple levels overlap.

How are the support and resistance levels distinguished? Support levels are colored Green, Resistance levels are Red, and Pivot/CPR levels are Blue. Different line styles (solid, circles, crosses) help distinguish the timeframes.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.