Skip to main content Price To Book Value Ratio For ThinkOrSwim Skip to main content Skip to content
Master the TTM Squeeze with our comprehensive 19-module course Start Learning →
TOS Indicators
  • Tools

    Categories

    • Indicators
    • Backtesters
    • Scans
    • Dashboards
    • thinkScript
    • Member Resources
    Browse Full Library

    Featured Tutorials

    Heiken Ashi Trend Indicator
    Heiken Ashi Trend Indicator
    Indicators

    Download our Custom Heiken Ashi indicator for ThinkOrSwim. Full ThinkScript code, formula...

    Learn more →
    Commodities Tracker
    Commodities Tracker
    Indicators

    For acceleration signals: trend-following strategies and buying pullbacks. For deceleration signals: short...

    Learn more →
    Build an Election Backtester in 10 Minutes
    Build an Election Backtester in 10 Minutes
    Backtesters

    Learn how to create a Post-Election Backtester in ThinkOrSwim to analyze market...

    Learn more →

    Popular Posts

    Unusual Volume
    Unusual Volume
    Scans

    Build 4 scans to easily find stocks with greater than...

    Learn more →
    Upcoming Earnings with High Short Interest
    Upcoming Earnings with High Short Interest
    Scans

    Build a scan to find stocks that are likely to...

    Learn more →
    Unusual Volume Pro Scans
    Unusual Volume Pro Scans
    Scans

    4 additional scans to find unusual volume overlapping with key...

    Learn more →
  • Courses
    Squeeze Course
    Squeeze Course
    19 Modules

    Scan, backtest, and trade the TTM Squeeze setup with precision.

    Unlock Course →
    Earnings Course
    Earnings Course
    3 Modules

    Master earnings plays with free indicators and proven strategies for ThinkOrSwim.

    Unlock Course →
    V-Shaped Reversals
    V-Shaped Reversals
    7 Modules

    Identify and trade powerful V-shaped reversal patterns with confidence and precision.

    Unlock Course →
    Fibonacci Trading
    Fibonacci Trading
    4 Modules

    Learn to trade Fibonacci retracements and extensions in ThinkOrSwim effectively.

    Unlock Course →
  • Products
    Futures Volatility Box Premium
    Futures Volatility Box

    Volatility models for 10 major futures markets, including micros & SPX.

    Explore Futures VB →
    Stock Volatility Box Premium
    Stock Volatility Box

    Dynamic support & resistance for 595+ stocks/ETFs, with a live scanner.

    Explore Stock VB →
    Opening Range Breakouts Premium
    Opening Range Breakouts

    Powerful live scanner & backtester for ORB strategies on 595+ stocks.

    Explore ORB Setups →
My Account
Back to Tutorials
Beginner 12 minutes ThinkOrSwim

Price to Book Value Calculator

Learn to build a custom Price to Book ratio calculator and discover undervalued stocks easily inside of ThinkOrSwim.

Download Indicator
How to install in ThinkOrSwim →
Table of Contents
  • The Complete Guide to Building a Price to Book Ratio Calculator in ThinkOrSwim
  • What the Price to Book Ratio Actually Tells You
  • The Two-Step Process for Finding Real Value
  • Setting Up Your ThinkOrSwim Scanner
  • Building the Historical P/B Calculator
  • Reading the Historical Patterns
  • Cross-Checking Your Data
  • Real Examples from the Scanner
  • Sector Differences You Should Know
  • Risk Management for Value Plays
  • Improving Your Scanner Results
  • Common Mistakes to Avoid
  • Putting It All Together

Master Value Investing with Price to Book Ratio Analysis

Discover how to identify undervalued stocks using the powerful Price to Book ratio calculator and advanced scanning techniques in ThinkOrSwim.

This comprehensive tutorial teaches you to:

  • Build a custom P/B ratio calculator with historical analysis
  • Create sophisticated scans for undervalued opportunities
  • Compare current ratios with historical averages
  • Validate findings using multiple data sources

Perfect for value investors and fundamental analysts looking to systematically identify stocks trading below their book value with strong potential for mean reversion.

The Complete Guide to Building a Price to Book Ratio Calculator in ThinkOrSwim

The Price to Book (P/B) ratio helps value investors identify stocks potentially trading below their worth. When markets crash, many solid companies see their P/B ratios drop to historically attractive levels. Here’s how to build a P/B ratio calculator in ThinkOrSwim and create scans to find these opportunities.

What the Price to Book Ratio Actually Tells You

The P/B ratio compares a company’s market value to its book value – essentially how much investors pay for each dollar of net assets. A ratio below 1.0 means the stock trades for less than its book value, which sounds great until you realize some industries always trade this way.

Book value represents shareholders’ equity from an accounting perspective – total assets minus total liabilities. It’s what shareholders would theoretically get if the company were liquidated tomorrow. While not perfect due to accounting quirks, it gives you a baseline for comparison.

The Two-Step Process for Finding Real Value

Most people just scan for P/B ratios under 1.0 and call it a day. That’s lazy and unprofitable. You need a two-step approach that separates real opportunities from value traps.

Step 1: Initial Screen

Scan for stocks with P/B ratios between 0 and 1.0, but only look at liquid stocks you can actually trade. No point finding “value” in some penny stock you can’t get in or out of.

Step 2: Historical Context

Here’s where most people fail – you need to check if the current ratio is actually unusual for that stock. A bank trading at 0.8x book value might be normal, while a tech company at the same level could signal serious problems.

Setting Up Your ThinkOrSwim Scanner

Building an effective scanner takes some thought. You want to catch opportunities without drowning in garbage stocks you can’t actually trade.

Start with Quality Stocks

Go to ThinkOrSwim’s Scan tab and select “All Optionable” as your base. This gives you liquid stocks with options, which means you can actually do something with them if they look good.

Filter for Liquidity

Add a volume filter: “Add Filter” > “Study” > “Volume” > “Average Volume.” Set it to at least 1,000,000 shares over 50 days. Nobody wants to get stuck in an illiquid stock, no matter how “cheap” it looks.

Add the P/B Filter

Here’s the main event: “Add Filter” > “Fundamental” > “Price to Book Value Ratio.” Set minimum > 0 and maximum < 1.0. This finds stocks trading below book value while avoiding companies with negative book values (usually a bad sign).

Running this scan typically gives you 200+ stocks. The exact number depends on market conditions – bear markets create more opportunities as selling pressure hits everything.

Building the Historical P/B Calculator

The scanner finds current opportunities, but you need historical context to know if they matter. Time to build a custom calculator.

The Code Components

You need two things: current price (easy) and book value per share (less easy). ThinkOrSwim has a BookValuePerShare function that takes the symbol and fiscal period as inputs.

Writing the Calculator

Go to Charts > Studies > Create. Delete the default code and start fresh:

Define current price: def curr = close;

Define book value: def bv = BookValuePerShare(getSymbol(), FiscalPeriod.Year);

The getSymbol() function grabs whatever chart you’re looking at, while FiscalPeriod.Year uses annual data for consistency.

Calculate the ratio: plot ratio = curr / bv;

Add a reference line: plot one = 1;

That’s it. Simple code that creates a powerful tool showing P/B ratios over time, with automatic adjustments for splits and corporate actions.

Reading the Historical Patterns

Now comes the important part – figuring out what the historical data actually means for your trading decisions.

What to Look For

Load your calculator on scan results and look for clear patterns. You want stocks where the current sub-1.0 ratio represents a real change from normal behavior. Companies that always trade above 1.0 but suddenly drop below often present the best opportunities.

Data Limitations You Need to Know

ThinkOrSwim’s BookValuePerShare function updates annually, so there’s a lag. The historical plot typically stops at last year-end, which means you need external sources for current data. This isn’t a bug – it’s just how fundamental data works.

Cross-Checking Your Data

Since ThinkOrSwim’s data has limitations, you need other sources to get current information and avoid bad trades based on stale data.

Yahoo Finance Method

Yahoo Finance gives you current P/B ratios easily. Search your ticker, click Statistics, and find the Price to Book ratio in valuation measures. Yahoo also shows quarterly trends, helping you understand recent changes.

Koyfin for Better Analysis

Koyfin (free version works fine) offers better visualization tools. Search your ticker, go to “Multiples,” and you’ll get comprehensive P/B analysis with historical context and peer comparisons. Much easier to spot real opportunities versus normal variations.

Using multiple sources helps catch data discrepancies and ensures you’re working with accurate information before making trading decisions.

Real Examples from the Scanner

Let’s look at actual stocks from scanner results to see how this analysis plays out in practice.

Citigroup – The False Positive

Citigroup often shows up in P/B scans because it’s a bank. Historical analysis shows Citigroup has traded below 1.0 consistently for the past decade. The current sub-1.0 ratio isn’t special – it’s just normal for this stock. No opportunity here.

General Motors – The Real Deal

General Motors presents a better case. Historical data shows GM typically trades above 1.0, making the current 0.80 reading potentially significant. External sources confirm this ratio, well below historical norms. This suggests possible mean reversion, especially after earnings that might change sentiment.

Wells Fargo – The Data Problem

Wells Fargo shows why you need multiple sources. ThinkOrSwim might show sub-1.0, while Yahoo and Koyfin show above 1.0. These discrepancies happen due to timing differences and highlight why cross-checking matters for important decisions.

Sector Differences You Should Know

Different industries have different P/B ratio personalities. Understanding these patterns helps you avoid wasting time on false signals.

Financial Stocks

Banks often trade below book value during stress periods. Sometimes this means opportunity, sometimes it means the bank is in trouble. You need to look at asset quality and regulatory issues, not just the ratio.

Industrial Companies

Manufacturing companies with lots of physical assets often give clearer P/B signals. Their book values better reflect real asset values, making the ratio analysis more reliable.

Tech Companies

Tech stocks rarely show up in sub-1.0 scans because they don’t own much physical stuff and usually trade at premiums. When they do appear, it often means something’s seriously wrong rather than a value opportunity.

Risk Management for Value Plays

Value investing based on P/B ratios needs disciplined risk management. “Cheap” stocks can get cheaper, and timing mean reversion is tough.

Don’t Go All-In

Spread your bets across multiple names and sectors. Market conditions that create P/B opportunities often hit multiple stocks at once, increasing correlation risk.

Be Patient

P/B ratio opportunities often take time to work out. Think quarters or years, not days or weeks. Use smaller position sizes with longer time horizons rather than trying to time short-term moves.

Look for Catalysts

The best P/B trades often have something that might trigger revaluation – earnings, management changes, or sector rotation. Pure ratio plays without catalysts can stay cheap forever.

Improving Your Scanner Results

Add other filters to catch higher-quality opportunities and avoid obvious value traps.

Financial Health Checks

Add debt-to-equity ratios and current ratios to screen out companies that are cheap because they’re in trouble. Healthy balance sheets improve your odds of successful mean reversion.

Profitability Filters

Include return on equity and profit margin filters. Companies that generate decent returns on their book value while trading below it often represent better opportunities than money-losing enterprises.

Technical Confirmation

Consider adding technical filters like relative strength or moving average relationships to find stocks showing signs of stabilization rather than continued decline.

Common Mistakes to Avoid

Falling for Value Traps

Not every cheap stock is a bargain. Companies in dying industries or facing major disruption may deserve low valuations. Focus on temporary market overreactions, not permanent business problems.

Trusting Book Value Blindly

Accounting book value can be misleading due to asset write-downs, goodwill problems, or hidden liabilities. Don’t rely on ratios alone – check if the assets are actually worth what the books say.

Expecting Quick Results

Value investing takes time. Don’t use leverage or short-term options expecting quick mean reversion. Many of the best value plays take years to work out.

Concentrating in One Sector

Market conditions that create P/B opportunities often hit entire sectors. Diversify across industries and market caps to reduce the risk of being wrong about a whole sector.

Putting It All Together

The P/B ratio calculator and scanner give you a systematic way to find undervalued opportunities, but success comes from using them properly. Combine scanning with historical analysis and cross-reference multiple data sources before making decisions.

The best opportunities usually emerge during periods of maximum pessimism when quality companies trade at big discounts to historical valuations. But remember – P/B analysis works best as part of a broader research process, not as a standalone decision-making tool.

Use this system to identify candidates for further research rather than making buy decisions based purely on ratios. The companies that survive your screening process often represent genuinely attractive risk-adjusted opportunities, especially during market downturns when fear creates temporary mispricings.

Price to Book Value Ratio.ts
#TOS Indicators

#Home of the Volatility Box

#Indicator: P/B Ratio

#Code written in 2022

#Full Tutorial: https://www.tosindicators.com/indicators/pb-ratio


// ... 7 more lines ...

Unlock This Code

Create a free account to access the full source code and download files.

Create Free Account Login
To create a P/B ratio scanner in ThinkOrSwim, go to Scan > Add Filter > Fundamental > Price to Book Value Ratio. Set minimum value > 0 and maximum 1M shares) and select "All Optionable" as your base universe for liquid, tradable stocks.
A P/B ratio below 1.0 means the stock trades for less than its book value (net assets). However, this isn't automatically a "deal" - some industries naturally trade below book value. The key is comparing current ratios to historical averages using the custom calculator to identify genuine value opportunities versus normal trading patterns.
ThinkOrSwim's BookValuePerShare function uses annual fiscal data, creating a lag in current period information. The historical plot stops at the previous year-end, while Yahoo Finance and Koyfin provide more current quarterly data. Always cross-reference multiple sources for accurate current ratios before making trading decisions.
Look for stocks where current sub-1.0 ratios represent clear deviations from historical norms. Companies that typically trade above 1.0 but currently below offer potential mean reversion opportunities. Companies that consistently trade below 1.0 (like many banks) don't represent special value opportunities when scanning sub-1.0 ratios.
Enhance your scanner with debt-to-equity ratios, current ratios, and profitability metrics (ROE, profit margins) to avoid financially distressed companies. Add technical filters like price above key moving averages to find stocks showing signs of stabilization. Always include volume filters (1M+ average volume) for liquidity.
Traditional industries with substantial fixed assets (manufacturing, utilities, industrials) often provide the most reliable P/B signals since book values better reflect tangible assets. Financial stocks require careful analysis due to regulatory capital requirements. Technology companies rarely appear in sub-1.0 scans and may signal fundamental problems when they do.
P/B ratio mean reversion is unpredictable and can take quarters to years. Successful value investing requires patience and appropriate position sizing for longer holding periods. Look for potential catalysts (earnings, management changes, sector rotation) that might accelerate revaluation, but avoid strategies requiring precise timing like short-term options.
Combine P/B analysis with earnings quality assessment, cash flow analysis, and competitive position evaluation. Avoid companies in declining industries or facing fundamental disruption. Focus on temporary market dislocations rather than structural problems. Diversify across sectors and use smaller position sizes to manage risk of individual value traps.

Here are some resources that you may find useful:

  • How to import an indicator into ThinkOrSwim (video tutorial)
Featured Tools:
Stock Volatility Box

Stock Volatility Box

Spot reversal zones across 600 stocks & ETFs.

  • Hourly & daily models
  • Powerful Live Scanner
  • Built for day traders
Futures Volatility Box

Futures Volatility Box

Pinpoint reversal zones in 10 major futures markets.

  • 5 models (incl. Scalper)
  • ThinkOrSwim & TradingView
  • SPX traders
ORB Setups

ORB Setups

Find the best Opening Range Breakout setups.

  • Powerful real-time scanner
  • Instant backtests
  • 2+ years data

Get Free Access

Create a free account for downloads and new tutorial alerts.

Create Free Account

More Tutorials Like This

Anchored VWAP

Anchored VWAP

Beginner • 8 minutes
Keltner Channel Wedges

Keltner Channel Wedges

Beginner • 8 minutes
Commodities Tracker

Commodities Tracker

Beginner • 15 minutes

Ready to Trade With an Edge?

Join 40,000+ traders using institutional-grade tools for ThinkOrSwim.

Get the Bundle
TOS Indicators

Premium thinkorswim indicators, scans, and trading tools to help you trade smarter.

ThinkOrSwim Tools

  • Indicators
  • Scans
  • Backtesters
  • Dashboards
  • thinkScript
  • Browse All

Courses

  • Squeeze Course
  • Earnings Course
  • V-Shaped Reversals
  • Fibonacci Trading

Products

  • Futures Volatility Box
  • Stock Volatility Box
  • ORB Setups
  • Shop All

Guides

  • TTM Squeeze
  • Automated Trading
  • Volatility Trading
  • Opening Range Breakouts
  • Trade Reports
  • Contact Us

© 2026 TOS Indicators. All rights reserved.

Privacy Policy Terms of Service Disclaimer

The information contained on this website is solely for educational purposes, and does not constitute investment advice. The risk of trading in securities markets can be substantial. You must review and agree to our Terms of Service prior to using this site.

U.S. Government Required Disclaimer - Commodity Futures Trading Commission. Futures and options trading has large potential rewards, but also large potential risk. You must be aware of the risks and be willing to accept them in order to invest in the futures and options markets. Don't trade with money you can't afford to lose. This website is neither a solicitation nor an offer to Buy/Sell futures or options. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this website. The past performance of any trading system or methodology is not necessarily indicative of future results.

Individual results may vary, and testimonials are not claimed to represent typical results. All testimonials are by real people, and may not reflect the typical purchaser's experience, and are not intended to represent or guarantee that anyone will achieve the same or similar results.

TOS Indicator's Traders and employees will NEVER manage or offer to manage a customer or individual's options, stocks, currencies, futures, or any financial markets or securities account. If someone claiming to represent or be associated with TOS Indicator solicits you for money or offers to manage your trading account, do not provide any personal information and contact us immediately.

CFTC RULE 4.41 - HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY, SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.