Trading Tools

CPR Indicator Setup on TradingView

The exact daily and weekly CPR indicator settings used across our courses, installed in under five minutes.

AH
Anil Hanegave
Founder, Trading Direction ยท 21,000+ students trained
Quick Answer

To set up the Trading Direction CPR indicator on TradingView: open the Pine Script file from the shared Google Drive link, copy the full script, open TradingView's Pine Editor from any chart, create a new indicator, paste the script in, save it, and click "Add to chart." If you're on TradingView's free plan, you can only run 2 indicators at once, so remove or hide an existing one first if your chart is already full.

Definition

CPR (Central Pivot Range) is a three-line support/resistance framework โ€” Pivot, Top Central (TC), and Bottom Central (BC) โ€” plotted from the previous session's high, low, and close, used to read where price is likely to find support, resistance, or a breakout zone for the current session.

Most students don't struggle with CPR as a concept โ€” they struggle with getting the indicator onto their own chart correctly. A missed step in the Pine Editor, or a free-plan slot limit nobody warned them about, and the levels never load. This guide walks through the exact process we use internally, end to end, so you're not guessing.

What You're Actually Installing

This is a Pine Script file โ€” plain text, not an app or a plugin. TradingView reads it directly inside its own script editor and turns it into the CPR overlay you see on the chart: Pivot, TC, BC for the day, plus the weekly range if you're using the multi-timeframe version. Nothing gets installed on your computer. It lives inside your TradingView account, tied to whichever script slot you save it into.

Google Drive Script (.txt) Pine Editor Paste script Save Script Name it Add to Chart

Before You Start

You'll need three things ready before you touch TradingView:

  • A TradingView account (free plan works fine for this)
  • Access to the Pine Script file โ€” CPR by Trading Direction V2 โ€” Google Drive link. If Drive asks you to request access, send the request from the same Google account you'll use to view it โ€” approval is usually quick.
  • Two minutes where you're not switching tabs mid-step โ€” the whole setup breaks most often when a step gets skipped, not because it's technically hard
Prefer to get it as part of a structured course instead of a standalone file? The same CPR framework is taught with full context inside our CPR course, where you also see how the levels are actually used in a live trade, not just how to plot them.

Step-by-Step Setup on TradingView

  1. Open the Google Drive link and download the text document containing the script. If it opens as a Google Doc instead of downloading directly, that's fine โ€” just open it in view mode.
  2. Select all the text and copy it. The entire script, top to bottom โ€” a partial copy is the single most common reason the indicator fails to compile.
  3. Open any chart on TradingView (NIFTY, Bank Nifty, or any symbol) โ€” this is just to get into the charting workspace, the symbol doesn't matter yet.
  4. Click "Pine Editor" at the bottom of the chart window. This opens TradingView's built-in script editor.
  5. Check your existing scripts first. If you already have other custom indicators saved, remove or close any old/unused ones now โ€” this matters more on the free plan (see the next section).
  6. Click "Create new" โ†’ "Indicator." This opens a blank script window titled "Untitled script."
  7. Clear the default placeholder code that TradingView pre-fills, then paste the script you copied in Step 2.
  8. Click "Save" and give the script a name you'll recognize later, like "CPR by Trading Direction."
  9. Click "Add to chart." The CPR levels โ€” Pivot, TC, BC โ€” should now appear on your chart immediately.

Free Plan Only Allows 2 Indicators โ€” Handling That

Yahan problem indicator ki nahi, plan ki hai โ€” this isn't a script issue, it's a TradingView account-tier limit. The free plan caps you at 2 active indicators per chart at a time. If your chart already has 2 running (say, a moving average and a volume tool) and you try to add CPR as a third, TradingView will block it or ask you to remove one.

The fix is simple: before adding CPR, either delete an indicator you're not using or temporarily hide it (click the eye icon next to its name in the indicator list). CPR itself doesn't count as "using up" more than one slot even if it plots multiple lines โ€” it's still one script.

How to Confirm It's Set Up Correctly

Once it's added, you should see the Pivot line in the middle, with TC above and BC below, plotted from the previous session. If nothing shows up, check these in order: did the script save without a red error banner in the Pine Editor, is the indicator toggled visible (not hidden) in your indicator list, and are you looking at a timeframe the script actually supports. Most "it's not showing" issues trace back to one of these three, not a broken script.

Watch the Full Walkthrough

If you'd rather follow along visually instead of reading each step, this walkthrough covers the same process on screen:

Once CPR is on your chart, the next question is how to actually trade off it โ€” narrow vs wide range, breakout confirmation, and where most traders enter too early.

See the CPR Brahmastra Course โ†’

Frequently Asked Questions

Do I need a paid TradingView plan to use the CPR indicator?

No. The free plan supports custom Pine Script indicators โ€” the only limit is that you can run just 2 indicators on a chart at once, so you may need to remove or hide another one first.

Why does TradingView show an error when I paste the script?

This almost always means the copy was incomplete, or the default placeholder code wasn't fully cleared before pasting. Go back to the Google Drive file, select all again, and paste into a fresh "Create new โ†’ Indicator" window.

Can I use this CPR indicator on Bank Nifty and stocks too, not just NIFTY?

Yes. Once added, it works on any symbol you load on TradingView โ€” Bank Nifty, FINNIFTY, or individual stocks โ€” since it calculates CPR from that symbol's own previous session data.

Does this indicator work on mobile TradingView?

Yes, once it's saved to your account from the desktop Pine Editor, it's available under your indicator list on the TradingView mobile app too โ€” you just add it to the chart from there.

What's the difference between this and TradingView's built-in Pivot Points tool?

TradingView's built-in pivot tool plots standard pivot points without the Central Pivot Range logic. This script is specifically built around CPR โ€” Pivot, TC, and BC as a range โ€” along with the width classification we use in our own CPR framework.

The Practical Takeaway

The setup itself takes under five minutes once you've done it in the right order โ€” Drive, copy, Pine Editor, paste, save, add to chart. The part that actually matters comes after: reading whether today's CPR is narrow or wide, and whether that tells you to expect a trending day or a range-bound one. The indicator gives you the lines. What you do with them is the real skill.

This article is for educational purposes only and does not constitute investment advice. Trading in the Indian stock market involves risk, including the risk of loss. Please consult a SEBI-registered advisor and trade with capital you can afford to risk.

WA Group ๐Ÿน Live Webinar, Sun

Popular Blogs

Recent Posts

Narrow CPR Stocks for Today: How to Read the List and Actually Trade It Aug 14, 2026
Option Position Size Calculator: Sizing Trades by 3% and 4% Risk Aug 14, 2026
Stop-Loss Calculator: Options, Stock & Commodity Trading Aug 14, 2026
Reward to Risk Ratio Calculator: Know Your Numbers Before You Enter Aug 14, 2026

Explore More

๐Ÿ“ข Share this Article