Skip to main content Cash-Secured Put Calculator 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
Intermediate 10 minutes ThinkOrSwim

Cash-Secured Put Calculator

Build the ultimate put calculator for ThinkOrSwim that instantly calculates returns, breakeven prices, and profit targets for any put option strategy

Download Indicator
How to install in ThinkOrSwim →
Table of Contents
  • Building a Cash Secured Put Calculator for ThinkOrSwim: Complete Tutorial
  • Understanding Cash Secured Put Strategy
  • Why You Need a Cash Secured Put Calculator
  • Step-by-Step Calculator Construction
  • Testing and Verifying the Calculator
  • Real-World Application: BYD Analysis
  • Strategic Integration with Technical Analysis
  • Advanced Calculator Features
  • Integration with the Wheel Strategy
  • Risk Management and Best Practices
  • Common Mistakes and Calculator Solutions
  • Performance Tracking and Optimization
  • Conclusion

Build the Ultimate Put Calculator for ThinkOrSwim

Stop manually calculating put option returns and start using our professional put calculator that automatically computes profits, breakeven prices, and returns for every put option in your ThinkOrSwim options chain.

This powerful calculator shows you:

  • Instant Return Calculations for All Put Strikes
  • Automatic Breakeven Price Analysis
  • Profit Target Identification
  • Risk Assessment Tools

Whether you’re selling cash secured puts, buying protective puts, or trading put spreads, our calculator eliminates guesswork and maximizes your trading efficiency.

Building a Cash Secured Put Calculator for ThinkOrSwim: Complete Tutorial

Cash secured puts represent one of the most reliable income-generating strategies in options trading. By selling put options while holding sufficient cash to purchase the underlying stock, traders can collect premium income while potentially acquiring shares at discounted prices. However, manually calculating return percentages and breakeven prices across multiple strikes is time-consuming and error-prone.

This comprehensive tutorial will teach you to build a professional cash secured put calculator that integrates directly into your ThinkOrSwim options chain, providing instant analysis for every available put option.

Understanding Cash Secured Put Strategy

Before building our calculator, let’s establish a solid understanding of the cash secured put strategy and why systematic analysis is crucial for success.

A cash secured put involves selling a put option while setting aside enough cash to purchase 100 shares of the underlying stock at the strike price. This strategy serves dual purposes: generating immediate income through premium collection and potentially acquiring stocks at prices below current market levels.

Key Components of Cash Secured Puts:

Premium Collection: When you sell a put option, you immediately receive a premium payment. This income is yours to keep regardless of what happens with the option.

Cash Requirement: You must have sufficient funds to purchase 100 shares at the strike price if assigned. For a $50 strike, you need $5,000 in cash security.

Assignment Risk: If the stock price falls below the strike price at expiration, you’ll likely be assigned and must purchase the shares at the strike price.

Breakeven Calculation: Your breakeven price equals the strike price minus the premium received. This represents where the stock can fall before you experience losses.

Why You Need a Cash Secured Put Calculator

Manual calculations become overwhelming when comparing multiple strikes and expirations. Consider analyzing puts on Boyd Gaming (BYD), which recently triggered our slingshot squeeze signal—a bullish technical indicator that makes it an excellent candidate for put selling.

Without a calculator, you’d need to manually compute:

  • Return percentages for each strike price
  • Breakeven prices for risk assessment
  • Comparisons across different expiration dates
  • Premium-to-risk ratios for optimization

Our calculator automates these calculations, displaying results instantly as you browse through the options chain.

Step-by-Step Calculator Construction

Let’s build the cash secured put calculator systematically, starting with the core variables and progressing through each calculation component.

Step 1: Setting Up Core Variables

We begin by defining the fundamental parameters that make our calculator flexible and customizable:

input maxShares = 100;
input maxContracts = 1;
input maxPercentageThreshold = 50;

These variables allow easy modification for different position sizes and return thresholds without changing the core calculation logic.

Step 2: Premium Calculation

The premium calculation captures the total dollar amount received from selling put contracts:

def premium = maxContracts * close * maxShares;

Here, ‘close’ refers to the put option’s closing price, which we multiply by the number of shares per contract (typically 100) and the number of contracts we’re selling.

Step 3: Return Percentage Calculation

This critical calculation shows the return on cash required to secure the put:

def premiumAsPercent = premium / (maxShares * close(GetUnderlyingSymbol()));

We divide the premium collected by the cash required to purchase the underlying shares at current market price. This gives us the return percentage for our cash secured put strategy.

Step 4: Breakeven Price Calculation

The breakeven price tells us where the stock can decline before we experience losses:

def newBreakevenPrice = GetStrike() - close;

This simple but crucial calculation subtracts the premium received from the strike price, giving us our effective purchase price if assigned.

Step 5: Display and Formatting

Finally, we create a clear display that shows both metrics in an easily readable format:

AddLabel(yes, AsPercent(premiumAsPercent) + " | " + AsPrice(newBreakevenPrice), 
         if premiumAsPercent >= maxPercentageThreshold then Color.GREEN else Color.WHITE);

This displays the return percentage and breakeven price side by side, with green highlighting for opportunities meeting our threshold criteria.

Testing and Verifying the Calculator

Before deploying our calculator, it’s essential to verify its accuracy through manual calculations. Let’s test it using real market data from our example.

For Boyd Gaming (BYD) with a current stock price of $63.20, let’s examine the $60 strike put trading at $3.20:

Manual Calculation:

  • Premium Collected: $3.20 × 100 = $320
  • Cash Required: $60 × 100 = $6,000
  • Return Percentage: $320 ÷ $6,000 = 5.33%
  • Breakeven Price: $60 – $3.20 = $56.80

Our calculator should display “5.33% | $56.80” for this strike, confirming the accuracy of our ThinkScript implementation.

Real-World Application: BYD Analysis

Let’s apply our calculator to analyze cash secured put opportunities in Boyd Gaming, which shows strong technical signals making it an attractive candidate for put selling strategies.

Current Market Setup:

  • Stock Price: $63.20
  • Technical Signal: Slingshot Squeeze (bullish momentum)
  • Market Pulse Entry: $57.61 (our preferred entry level)
  • Support Level: Strong technical support near $57-58 range

Using our calculator on the 10-day expiration options:

  • $55 Strike: Shows breakeven at $54.88, well below our technical entry
  • $60 Strike: Displays higher premium but breakeven at $57.15, close to our target

For the 45-day expiration series:

  • $60 Strike: Breakeven at $56.80, below our Market Pulse line at $57.61
  • Premium collection around $2.75-$3.10 range

The calculator immediately reveals that the 45-day $60 strike offers excellent premium collection with a breakeven price below our technical analysis target, making it an optimal choice for this setup.

Strategic Integration with Technical Analysis

The power of our calculator becomes evident when combined with technical analysis tools like the Market Pulse indicator and slingshot squeeze signals.

For BYD, the Market Pulse gives us an entry price of $57.61—representing an ideal level where we’d be happy to own the stock. Using our calculator, we can quickly identify which put strikes align with this technical target:

  • Strikes with breakevens above $57.61 may result in assignment at prices higher than our preferred entry
  • Strikes with breakevens below $57.61 provide a margin of safety, ensuring assignment occurs at attractive levels
  • The calculator helps us balance premium collection against assignment risk

Advanced Calculator Features

Color-Coded Opportunity Identification

Our calculator includes intelligent highlighting to instantly identify the most attractive opportunities. By setting the maxPercentageThreshold input, you can customize what return percentage triggers green highlighting.

For conservative investors, setting the threshold to 20% (0.20) will highlight puts offering at least 20% annual returns. Aggressive traders might prefer 50% (0.50) to focus only on the highest-premium opportunities.

Multi-Timeframe Analysis

The calculator’s true power emerges when comparing different expiration cycles. Simply switch between monthly options in your ThinkOrSwim options chain to see how time affects your returns:

  • 10-day options: Higher time decay but lower absolute premiums
  • 30-45 day options: Balanced approach with optimal theta decay
  • 60+ day options: Higher premiums but capital tied up longer

Integration with the Wheel Strategy

This cash secured put calculator serves as part 2 in our options calculator series. When combined with our covered call calculator from part 1, it forms the foundation for implementing the wheel strategy—a systematic approach to generating consistent income through options.

The wheel strategy workflow:

  1. Use the cash secured put calculator to identify optimal put selling opportunities
  2. If assigned, acquire shares at favorable prices
  3. Use the covered call calculator to sell calls against assigned shares
  4. If called away, return to step 1 with enhanced capital

Part 3 of our series will combine both calculators into a unified wheel strategy tool that automatically adapts its calculations based on whether you’re analyzing puts or calls.

Risk Management and Best Practices

Cash Management

The calculator helps ensure proper cash allocation by displaying the exact breakeven price for each strike. This allows you to:

  • Verify you’re comfortable owning the stock at the breakeven price
  • Assess whether assignment aligns with your investment thesis
  • Plan for multiple assignments across different positions
  • Maintain adequate liquidity for new opportunities

Position Sizing Guidelines

Use the calculator’s return percentages to inform position sizing decisions:

  • Higher return percentages may justify larger position sizes
  • Consider the correlation between different underlying stocks
  • Maintain diversification across sectors and expiration dates
  • Factor in your overall portfolio risk tolerance

Common Mistakes and Calculator Solutions

Mistake: Focusing Only on Premium Amount

Many traders chase high absolute premiums without considering the return percentage. A $500 premium on a $50,000 cash requirement (1% return) is less attractive than a $300 premium on a $10,000 requirement (3% return).

Calculator Solution: Always focus on the percentage return displayed by the calculator rather than absolute dollar amounts.

Mistake: Ignoring Breakeven Analysis

Traders often sell puts without considering where assignment would occur relative to their technical analysis or fundamental valuation.

Calculator Solution: The breakeven price display ensures you’re always aware of your effective purchase price if assigned.

Mistake: Poor Expiration Selection

Without systematic analysis, traders might choose expirations based on intuition rather than optimal risk-reward ratios.

Calculator Solution: Compare returns across different expiration cycles to identify the most efficient time decay capture.

Performance Tracking and Optimization

Use the calculator’s output to track and improve your cash secured put performance:

Key Metrics to Monitor:

  • Average return percentage across all positions
  • Assignment rate and outcomes
  • Time to maximum profit capture
  • Accuracy of breakeven price predictions

Optimization Strategies:

  • Focus on return thresholds that historically perform best
  • Identify optimal delta ranges for your risk tolerance
  • Refine expiration preferences based on results
  • Adjust strategies based on market volatility conditions

Conclusion

Building a cash secured put calculator for ThinkOrSwim transforms ad-hoc option selling into a systematic, data-driven strategy. By automatically calculating returns and breakeven prices, you can quickly identify the most attractive opportunities while maintaining consistent risk management.

This calculator serves as the second component in our comprehensive options trading system. Combined with proper technical analysis and risk management, it provides the quantitative foundation for successful put selling strategies.

In part 3 of our series, we’ll combine this cash secured put calculator with our covered call calculator to create the ultimate wheel strategy tool—enabling seamless transitions between put selling and covered call writing for maximum income generation.

Put Calculator.ts
# Put Calculator for ThinkOrSwim

# Ultimate Options Analysis Tool

# Free Download: tosindicators.com

# Input Variables

input maxShares = 100;


// ... 75 more lines ...

Unlock This Code

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

Create Free Account Login
Navigate to Trade > Layout > Customize > Custom Quotes. Select an available slot, paste the ThinkScript code, and click Apply. The calculator will display return percentages and breakeven prices for all put strikes. Save your layout for permanent access.
Our calculator uses real-time option prices and precise formulas: Return% = (Premium × 100) ÷ (Strike Price × Shares), while Breakeven = Strike Price - Premium. Manual calculations often use bid/ask midpoints or outdated prices. The calculator updates automatically with live market data, ensuring accuracy. If you see discrepancies, check that you're using the same option price the calculator is reading from the ThinkOrSwim feed.
Modify the "returnThreshold" input in the ThinkScript code. Default is 0.30 (30% annual return). Change to 0.20 for 20% threshold or 0.50 for 50%. The calculator will highlight puts meeting your criteria in green. You can also adjust "maxShares" (default 100) and "maxContracts" (default 1) to match your position sizing. Save and reload the script after changes.
For put spreads, load the calculator on both the long and short strikes. The net return equals (Short Put Return% - Long Put Cost%) adjusted for the spread width. For bull put spreads, sell the higher strike (positive return) and buy the lower strike (negative cost). The calculator's breakeven analysis helps determine maximum risk and optimal strike selection for spreads.
While the calculator doesn't export directly, you can screenshot results or manually track key metrics it displays: Return%, Breakeven Price, Max Profit, and Risk Level. Create a spreadsheet with these calculator outputs plus entry/exit dates and actual outcomes. This allows you to backtest the calculator's accuracy and refine your strategy based on which calculator readings led to the best trades.
The calculator requires liquid options with real-time price feeds. It may not function properly on: illiquid options with wide bid/ask spreads, expired contracts, options with no open interest, or during market closed hours when prices are stale. Ensure you're viewing options with adequate volume (100+ daily) and tight spreads (under $0.10 for most strikes) for accurate calculator results.
Switch between expiration cycles in your ThinkOrSwim options chain while keeping the calculator loaded. The calculator automatically recalculates returns for each timeframe. For example, weekly options might show 2% returns (104% annualized), while monthly options show 6% returns (72% annualized). Compare the annualized rates: (Return% × 365) ÷ Days to Expiration. The calculator helps you identify whether shorter or longer expirations offer better risk-adjusted returns based on current market conditions.
Yes! Monitor the calculator's current return versus your original entry. If a put now shows 0.5% return (down from 3% at entry), you've captured 83% of the maximum profit. Many traders close puts when the calculator shows remaining returns below 0.5%, equivalent to the "50% rule" (close at 50% max profit). The calculator's real-time updates help you decide whether to hold for full expiration or close early and redeploy capital into fresh opportunities with higher calculator-indicated returns.

Here are some resources that you may find useful:

  • Covered Call Calculator
  • 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
MTF Market Pulse

MTF Market Pulse

Beginner • 12 minutes
Smarter Earnings

Smarter Earnings

Intermediate • 46 mins

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.