⚠ Live market data is unavailable right now. This is on our end, not yours — your saved data is safe. Check again
Fetching live market data...
MAJOR INDICES
TOP GAINERS TODAY
TICKER
PRICE
CHANGE %
CHANGE $
TOP LOSERS TODAY
TICKER
PRICE
CHANGE %
CHANGE $
BIGGEST MOVERS TODAY
TICKER
PRICE
CHANGE %
DIRECTION
Data from Yahoo Finance. May be delayed 15 minutes during market hours. Not financial advice.
Advertisement — Upgrade to Pro to remove ads
Portfolio DashboardGlossary
Estimates based on historical data, for educational purposes only — not financial advice.
Holdings
Enter your ticker symbols and dollar amounts. Click Fetch Prices & Analyze to run live data.
CASH & SAVINGS
Add checking, savings, or money market. Cash counts toward your total, earns the rate you set, and lowers your overall risk.
AM I DIVERSIFIED?
The most common blind spot is having most of your money in one industry without realising it. This shows how your money is actually split.
Looking up what each holding actually is...
Portfolio Value
—
Expected Annual Return
—
Annual Volatility (2yr)
—
Sharpe Ratio
—
Portfolio Beta (2yr)
—
Est. Annual Return ($)
—
5-Year Projected Range
—
5-Year Return (est.)
—
⚠ Projections use historical return and volatility, not predictions. The range shows roughly where two-thirds of outcomes would fall based on past behavior. Actual results will vary and past performance does not guarantee future results.
Current Holdings
TICKER
SHARES
PRICE
VALUE ($)
WEIGHT
DAY CHG
EXP. ANNUAL RETURN
Monthly Seasonality — Best & Worst Months
Risk-Adjusted Return by Holding
Return earned per unit of risk taken. Longer green = well paid for the risk. Red = not paid for it. Best on top.
Correlation Matrix
Do your holdings move together? Green = they rise and fall as one. Red = they move opposite. Lots of green means you're less diversified than you think.
What This All Means
Improve My MixGlossary
Estimates based on historical data, for educational purposes only — not financial advice.
What matters most to you?
50% primary / 50% secondary
Automatic lets the optimizer pick sensible limits for you.
-
Consider Adding Holdings
Saved Optimizations (for this portfolio)
Running optimization...
Current vs Optimized
Metric
Current
Optimized
Change
Projected Growth — Current vs Optimized
How your portfolio value would grow over 5 years under each allocation. The shaded area is the realistic spread around the optimized path (one standard deviation) — the line is the middle, not a promise.
Recommended Allocation
TICKER
CURRENT %
CURRENT $
OPTIMAL %
TARGET $
CHANGE $
What This All Means
Monte Carlo SimulationGlossary
Estimates based on historical data, for educational purposes only — not financial advice.
Plays out the next year 1,000 times to show where your money could land — best case, typical, and worst. The risk numbers say how bad a bad year gets.
Fat-Tailed (recommended) assumes crashes happen more often than a bell curve says — a more honest worst case. Standard is the usual math, which understates big losses.
Running 1,000 simulations...
Best Case (1yr)
—
Average Case (1yr)
—
Worst Case (1yr)
—
Probability of Profit
—
VaR 95%
—
CVaR 95%
—
VaR 99%
—
CVaR 99%
—
1,000 Simulation Paths
What This All Means
Black-Scholes Option PricingGlossary
Estimates based on historical data, for educational purposes only — not financial advice.
Prices call and put options from the live share price, and shows what you'd make or lose at five different prices.
Fetching data...
Stock Price
—
Strike Price
—
Hist. Volatility
—
Time to Expiry
—
Call Price
—
Call Delta
—
Call Theta
—
Call Vega
—
Put Price
—
Put Delta
—
Put Theta
—
Gamma (shared)
—
Profit/Loss Scenarios
FUTURE PRICE
CHANGE
CALL P&L
PUT P&L
SUGGESTION
What This All Means
Squeeze Momentum ScannerGlossary
Estimates based on historical data, for educational purposes only — not financial advice.
How it works: a "squeeze" means the price has gone quiet and is building energy. When it releases, the stock often moves fast.
This section is in beta. The engine and the numbers are verified against hand-computed results, but it is new, it is the most complex part of the app, and strategy testing is the easiest place in investing to fool yourself. Treat every result as a starting point for thinking, not an answer. If something looks wrong, it might be — please tell us.
Tested on historical data, for educational purposes only — not financial advice. What worked before is not a forecast.
TEST ON
Tests every named strategy and every variation on the stock you set below, then ranks them against simply holding it and against the benchmark.
Running every strategy…
Know one that should be here? Tell us and we will look at adding it.
SHOW
No strategy yet
Pick one from the Strategy Library above and its rules appear here, ready to run on your stock. Or start from scratch.
THE RULES — locked while you see what it does. Choose 3 · Adjust it to change them.
BUY
SELL
Leave the box empty and your money waits in cash. Put a ticker in it — AGG or TLT for bonds — and it waits there instead, earning what that asset earned. Stops and take-profits still fire on any day; only the rules wait for the month.
ADDING MONEY AS YOU GO
Regular deposits — the same amount on a schedule (dollar-cost averaging)
One-off deposits — a bonus, a tax refund, an inheritance: a set amount, a set time after you start
Every line — your strategy, simply holding, and the benchmark — gets the same deposits on the same days. Money that arrives while the rules have you out waits with the rest.
A stop loss sells if the price falls that far below what you paid. A take profit sells once you are up that much. 0 turns either one off. Both are checked against each day’s closing price.
Change any box above, save it, and find it under My strategies in the library — where you can also send it to us.
Portfolio strategiesBETA
The rule builder tests one rule on one stock or on each of your holdings. These hold several at once and rebalance on a schedule — which is what momentum, risk weighting and the Dogs of the Dow actually are. Different engine, same rules about not peeking at the future.
Downloading the whole list and rebalancing it…
Pairs tradingBETA
Two related companies usually move together. When the gap between them stretches unusually wide, this buys the laggard and shorts the leader, betting the gap closes. It is the only thing here that sells short — which means it can lose money on both legs at once.
The gap is measured in standard deviations, so “2” means twice as wide as it normally gets over that window. Borrowing stock to short it costs money every day the trade is open — half a percent a year is about right for a big liquid company, and far too low for anything hard to borrow.
Lining the two up and measuring the gap…
Testing every day of history…
EVERY TRADE IT MADE
EACH HOLDING
Monthly SeasonalityGlossary
Estimates based on historical data, for educational purposes only — not financial advice.
Shows average return by calendar month over your selected lookback period. Helps identify historically strong and weak months for a given ticker.
Fetching data...
Average Monthly Return
MONTH
AVG DAILY RETURN
ANNUALIZED
RATING
What This All Means
Historical Crisis SimulationGlossary
Estimates based on historical data, for educational purposes only — not financial advice.
Fetching historical data...
Portfolio Total Return
—
S&P 500 Total Return
—
Alpha vs S&P 500
—
Max Drawdown
—
S&P 500 Max Drawdown
—
Worst Month
—
Best Month
—
Recovery Status
—
Portfolio vs S&P 500 — Crisis Period
Individual Ticker Performance
TICKER
TOTAL RETURN DURING CRISIS
STATUS
Portfolio Report
Estimates based on historical data, for educational purposes only — not financial advice.
Turn your saved holdings into one shareable report. Pick what to include, and we run each analysis and put it together — with a PDF you can download or send to someone.
WHAT TO INCLUDE
Building your report...
SectorsBETA
How each part of the stock market is doing: what it costs, how profitable it is, who the biggest companies are, and how it has done against the S&P 500. Built from today’s S&P 500 companies, refreshed daily. Educational only, not financial advice.
Loading sector data…
PICK ONE
Colour shows this year’s price change. Groups split the 11 sectors into smaller families of similar businesses, like Banks or Semiconductors.
ALL 11 SECTORS SIDE BY SIDE
GROWTH OF $1 VS THE S&P 500
PRICE PERFORMANCE AND TREND
GROWTH OVER TIME
PROFITABILITY OVER TIME
WHAT IT HAS COST OVER TIME
WHERE IT SITS AMONG THE 11 SECTORS
BIGGEST COMPANIES
BEST PERFORMERS, LAST 12 MONTHS
EVERY COMPANY IN IT
Click a ticker to open it in THIS STOCK.
HOW THESE NUMBERS ARE MADE
Study a StockBETA
A full equity report on any company: how it compares with competitors, the statistics of how it moves against the market, its dividends and ratios, the price chart, insider trades, and how Graham, Buffett or Lynch would judge it. Add your own notes and recommendation, then download it as a PDF. Educational only, not financial advice.
Pulling filings, prices and statistics… this takes about 10 seconds.
1 · THE COMPANY
Revenue by business segment: you check this — it is in the segment note of the company’s 10-K (search “segment” in the filing on sec.gov).
2 · AGAINST ITS COMPETITORS
Compared with:
3 · HOW THE STOCK HAS MOVED (QUANTITATIVE)
4 · THE BUSINESS IN NUMBERS (FUNDAMENTAL)
DIVIDENDS
RATIO ANALYSIS
BONDS
5 · THE PRICE CHART (TECHNICAL)
6 · WHAT INSIDERS HAVE DONE (LAST 12 MONTHS)
7 · STRENGTHS AND WEAKNESSES
STRENGTHS
WEAKNESSES
Facts only, each against its industry or the S&P 500. Opportunities and threats are judgement calls: add them in your notes.
8 · THROUGH A GREAT INVESTOR’S EYES
9 · YOUR RECOMMENDATION
The app gives facts, not advice. The call is yours: it goes on the front of the PDF.
HOW THIS REPORT IS MADE
Compare Stocks
Estimates based on historical data, for educational purposes only — not financial advice.
Put two to four stocks side by side to see which is bigger, steadier, pays more income, and has performed better — then check what each would do to your own portfolio.
Comparing...
SIDE BY SIDE
GROWTH OF $1 — LAST 12 MONTHS
WHAT THIS MEANS
Stock Report
Estimates based on historical data, for educational purposes only — not financial advice.
Pick a stock, tick what you want included, and get one combined report — the numbers, the charts, and a plain-English read-out in a single place.
Include in report
Building your report...
Stock Dashboard
Estimates based on historical data, for educational purposes only — not financial advice.
Loading stock data...
THE ESSENTIALS
PRICE — LAST 12 MONTHS
WHAT THIS MEANS
EARNINGS — DID IT BEAT WHAT ANALYSTS EXPECTED?BETA
Loading earnings history…
How far above (green) or below (red) the analyst estimate each quarter came in. Hover or tap a bar for the details.
How to read this. Before each report, analysts publish an average guess for earnings per share (EPS). A beat means the company earned more than that guess; a miss means less. A smaller-than-expected loss counts as a beat. "Stock moved" is the price change across the report: the previous close to that day's close for a morning report, that day's close to the next day's close for one after the market shuts. Worth knowing. Most large companies beat most quarters, partly because they steer analysts towards a number they expect to clear, so a beat alone is not a reason to buy. The stock can fall on a beat when the outlook disappoints. These are "adjusted" EPS figures (the ones analysts forecast), which can differ from the official figure in the company's filing. Older figures are adjusted for stock splits and rounded to the cent, so beat or miss uses Yahoo's surprise figure, which was worked out before rounding. Source: Yahoo Finance. Educational only, not financial advice.
IS THIS EXPENSIVE RIGHT NOW?
Financial StatementsGlossary
Estimates based on historical data, for educational purposes only — not financial advice.
Any company's Income Statement (are they profitable?), Balance Sheet (own vs. owe), and Cash Flow (is cash really coming in?), plus ratios and valuation. Yahoo Finance data — a snapshot, not audited filings.
Add 2 or more tickers to compare. Funds don't have company financials, so those rows show "n/a".
Loading financials...
Loading comparison...
Income Statement
Balance Sheet
Cash Flow Statement
What This All Means
Portfolio Thesis
Portfolio structure
Set what you want each type to be. We compare it against what you actually hold and show the gap.
Targets per industry, built from the sectors you have tagged on your positions.
Thesis per holding
This is the same text as “Why I Bought” on each position — edit it in either place. Selling a position in full retires its thesis.
Log a Position
Got filled at multiple prices on one order? Add a row for each fill, the journal blends them into your true average cost.
Exit — Sell / Close (leave blank if still open)
Same here, add a row per fill if you sold in pieces. Leave empty if the position is still open.
Positions
Trade History
Realized Performance Closed Trades Only
Overall (All Time)
Performance Over Time
Position Detail
News & Movers
Refreshed three times a day — 8:00 AM, 10:00 AM and 5:00 PM ET. Everyone sees the same digest, so nothing is fetched per visit.
What moved and why
Loading…
Today's reading
Economic Cycle
Loading economic data…
The economy in plain EnglishBETA
Where we are in the cycle
How strong each signal is right now — above zero is good for the economy
What this means
How these signals have moved over time — grey bands are recessions
Leading indicators tend to dip before a grey band starts and turn up before it ends — that is what makes them leading. Switch any line off to compare just two, or click a card above to see one on its own.
Recession probability
The chance the US economy is in a recession right now, estimated by the Federal Reserve. It has climbed above 50% before every recession since 1967.
Chart
Compare with:or
RANGE
STYLE
OVERLAYS
SCALE
PANELS
SHOW
DRAW
ZOOM
THIS VIEW
Loading…
RETURNS
What Beat the S&P 500BETA
Historical returns, for educational purposes only — not financial advice.
Pricing every holding…
Economic Data
Anything the Federal Reserve publishes. Search their catalogue, pin what you care about, and it stays here next time. Everything refreshes with the rest of the economy data each Friday.
Find a series
LAYOUT
Economic Indicators
Loading indicators…
Price Alerts
Price Alerts Get notified at your target priceEnable Alerts
Get notified even when the app is closed.
On iPhone/iPad: to get push notifications, first add this app to your Home Screen — tap the Share button in Safari, then "Add to Home Screen". Open the app from that icon, and this button will appear.
Watchlist
Track anything you do not own yet. Prices only — add a price alert if you want to be told when it hits a number.
WOULD THIS HELP MY PORTFOLIO?
See what your portfolio would have looked like over the past year if you had held this alongside your existing holdings.
Comparing your portfolio with and without it...
Dividend Reinvestment (DRIP) Glossary
Reinvesting dividends vs. taking the cash. Yields and dividend growth are real; price growth is your guess.
Fetching real dividend yields for your holdings...
None of your holdings pay dividends, so there's nothing to reinvest.
Valuation Models
These estimate what a company is worth. The interactive DCF and Dividend models below use assumptions you control, so treat them as scenarios, not certainties.
Discounted Cash Flow (DCF) Calculator
A DCF estimates a company's value by projecting its future free cash flow and discounting it back to today. Adjust the assumptions, this is an estimate, not a guarantee.
Not enough free cash flow data to run a DCF for this company.
Growth at a Reasonable Price (PEG)
The DCF above asks what the cash is worth. PEG asks a blunter question: are you paying more for the growth than the growth is worth? Peter Lynch's rule of thumb is that a fair multiple is roughly the growth rate — a company growing 15% a year is fairly priced near 15× earnings. So PEG = P/E ÷ growth rate, and 1.0 is the line.
Financial Ratios
Computed from the most recent annual statements (even when viewing quarterly above, since ratios like turnover need a full year). Items without source data show "no data" rather than a guess.
Benchmark ComparisonGlossary
Estimates based on historical data, for educational purposes only — not financial advice.
Compare your saved portfolio or any single stock against a market index or sector benchmark. See how you stack up on returns, risk, and consistency, with a plain-English breakdown at the bottom.
Compare your portfolio
Loading comparison...
Head-to-Head Stats
Metric
You
Benchmark
Edge
Growth Over Time
Monthly Scorecard
Green = you beat the benchmark that month. Red = the benchmark won.
Correlation to Benchmark
—
—
-1.0 (opposite)0 (unrelated)+1.0 (identical)
What This All Means
Rebalance & Cash DeploymentGlossary
Estimates based on historical data, for educational purposes only — not financial advice.
No saved optimization found. Go to the Optimize tab, run an optimization for your goal, and hit Save Optimization. Then come back here and your target will load automatically.
Drift from your structure targets
Rebalance Target
Dividend IncomeGlossary
Estimates based on historical data, for educational purposes only — not financial advice.
See dividend payments for your whole portfolio or any single stock, per-share amounts, pay dates, yield, and how often they pay. For your portfolio, it calculates your actual annual dividend income in dollars.
Uses the holdings from your active portfolio (—). Make sure you've saved holdings on the Dashboard.
Fetching dividend data...
YOUR ESTIMATED ANNUAL DIVIDEND INCOME
$0
Dividend Details
TICKER
PER PAYMENT
FREQUENCY
YIELD
ANNUAL/SHARE
YOUR INCOME
NEXT EX-DATE
Payment History
PAY DATE
AMOUNT PER SHARE
Dividend Discount Model (Fair Value) Glossary
What a dividend stock is worth, based on its dividend, how fast it grows, and the return you want. Adjust the inputs below.
What This All Means
⚡
UPGRADE YOUR PLAN
Upgrade for more analyses, unlimited alerts, and an ad-free experience.
PRO
$3.99/mo
15 analyses/day Unlimited alerts Cancel anytime
PRO+
$5.99/mo
Unlimited analyses No ads Cancel anytime
Subscriptions auto-renew (monthly or annually). Cancel anytime from Account settings. Powered by Stripe.
TERMS OF SERVICE
Last updated: June 2026
1. ACCEPTANCE OF TERMS
By creating an account and using Portfolio Lab ("the Service"), you agree to these Terms of Service. If you do not agree, do not use the Service.
2. EDUCATIONAL PURPOSE ONLY
Portfolio Lab is an educational and informational tool only. Nothing on this platform constitutes personalized investment advice, financial advice, legal advice, or tax advice. Portfolio Lab is not a registered investment advisor (RIA). All outputs — including portfolio optimization results, Monte Carlo simulations, backtests, and crisis simulations — are mathematical estimates based on historical data and models. They do not guarantee future performance.
3. NO WARRANTY
The Service is provided "as is" without warranty of any kind. We do not warrant that data is accurate, complete, or current. Market data may be delayed. AI-generated content may contain errors. We make no warranty that the Service will be uninterrupted or error-free.
4. LIMITATION OF LIABILITY
To the maximum extent permitted by law, XY Creations and Portfolio Lab shall not be liable for any investment losses, financial damages, or other losses arising from use of the Service. You use Portfolio Lab at your own risk. Always consult a licensed financial advisor before making investment decisions.
5. USER CONDUCT
You may not use the Service for any illegal purpose, attempt to reverse engineer the platform, or share account credentials with others.
6. CHANGES TO TERMS
We may update these terms at any time. Continued use of the Service constitutes acceptance of updated terms.
7. CONTACT
Questions? Contact us through the feedback button in the app.
PRIVACY POLICY
Last updated: June 2026
1. DATA WE COLLECT
We collect: your email address (for signing in) and any portfolio holdings you choose to save. That is it.
2. HOW WE USE YOUR DATA
Your data is used solely to run the Service — signing you in and saving your holdings. We do not sell your data to anyone. We do not use your holdings for any purpose other than showing them back to you. If you opt in at sign-up, we may occasionally email you about product updates; you can opt out anytime by contacting us.
3. DATA STORAGE
Your data is stored in Google Firebase (US servers) and is protected by Firebase security rules that prevent any other user from accessing your data.
4. COOKIES AND ANALYTICS
We use essential cookies to keep you signed in. With your consent, we use Google Analytics to see which features get used and how often people come back. That data is anonymized and aggregated. We do not run advertising cookies.
5. YOUR RIGHTS
You may delete your account and all its data at any time from Account settings. If you are in the EU or UK, you also have the right to see a copy of your data, correct it, or have it erased (GDPR) — contact us through the feedback button and we will handle it.
6. DATA RETENTION
We retain your data as long as your account is active. Deleted accounts are permanently removed within 30 days.
7. THIRD PARTIES
We use Firebase (Google) for sign-in and the database, and Google Analytics for usage analytics (with your consent). We do not share your personal data with anyone else.
INVESTMENT DISCLAIMER
NOT INVESTMENT ADVICE
Portfolio Lab is not a registered investment advisor. Nothing on this platform is personalized investment advice. All content is for educational and informational purposes only.
PAST PERFORMANCE
Past performance does not guarantee future results. Historical data, backtests, and crisis simulations show what happened in the past — they cannot predict future market behavior.
MODEL LIMITATIONS
Portfolio Lab uses mathematical models (SLSQP optimization, Monte Carlo simulation, Black-Scholes options pricing, Fama-French factor models). All models have limitations and assumptions. Outputs are estimates, not guarantees.
DATA ACCURACY
Market data is sourced from Yahoo Finance and may be delayed up to 15 minutes during market hours. Data may contain errors. Always verify information with your broker before making decisions.
AI-GENERATED CONTENT
Where AI is used to generate content, outputs may contain errors, outdated information, or inaccuracies. Do not rely on AI-generated content for investment decisions.
CONSULT A PROFESSIONAL
Always consult a licensed financial advisor, tax professional, or attorney before making investment decisions. Portfolio Lab is a tool to assist your own research — it does not replace professional advice.
ACCOUNT & BILLING
Loading...
Holding Performance
Fetching historical prices...
Add Cash Holding
Dividend Log
Dividends are found automatically from this holding's real payment history. Log them here only if you want your own numbers used instead — anything you add takes over for this position.
// SIMPLE EXPLANATION
WHAT'S NEW
Here is what changed since you were last here, so nothing catches you out.
STRATEGY TESTER — THE FULL GUIDE
The Strategy Tester answers one question: if I had followed this rule, what would my money have become? You say when to buy and when to sell. It walks through every trading day in the history you choose, follows your rule exactly, and shows the result next to simply buying and holding the same thing, and next to the S&P 500.
A step-by-step tour of the page, pointing at each part.
Start in one minute
The Strategy Library is at the top. In Technical, pick one marked START HERE — the Golden cross is a good first one — and press Load & test it.
The library folds away and the strategy appears, with a box saying what it does.
Set your stock, how much and how far back, and press RUN THE TEST. The first line of the result says whether it beat simply holding.
The four steps
1 · Pick a strategy — where you start. Only the stock (or portfolio), the money and how far back can be set until you choose one.
2 · See what it does — where loading takes you. The rules are not shown at all: you set the stock, your money and how far back, read one sentence saying what the strategy does, and run it — exactly as the card describes it.
3 · Adjust it — unlocks everything. Change the numbers, add a stop, swap the sell rule, and save it as your own variation.
4 · Build your own — a clean start: buy on day one and hold, the line every strategy has to beat. Change one thing at a time.
Pairs trading and portfolio strategies follow the same steps: in step 2 only the tickers or list, the money and the years are shown.
One stock or My portfolio
One stock tests the rule on a single ticker. My portfolio tests the same rule on every holding of a portfolio you saved on the dashboard: each holding starts with its share of the money by today’s value and runs the rule on its own, and the result is compared with holding the same mix. That is hindsight — it uses the stocks you hold now as if you had owned them all along — and the page says so. Cash entries are not included, up to 30 holdings at a time.
Beginner or Advanced
This decides how much of the rule builder shows when you adjust or build. Beginner shows the essentials: the stock, how much, how far back, one buy rule, one sell rule, a stop loss and a take profit, and adding money as you go. The rule lists are shorter, and each rule explains itself underneath. Advanced adds a second condition on each side, somewhere other than cash for your money to wait, acting only once a month, a different benchmark, and the cost per trade.
If you load a strategy that uses Advanced settings while in Beginner, those settings stay on — otherwise you would be testing a different strategy under its name — and a yellow box lists them in plain words, with buttons to see them or turn them off.
What you are testing
Stock — any ticker: a company (AAPL), a fund (SPY), a bond fund (AGG).
Starting amount — what you begin with. It changes the dollar figures, not the percentages.
How far back — 3 to 20 years, or everything available. Longer tests include more kinds of market; a rule that only worked in one decade is worth less.
Compare against (Advanced) — the benchmark line, SPY by default, which is the S&P 500.
The buy rule and the sell rule
Each day the tester checks your buy rule if you are out, and your sell rule if you are in. When a rule is true at one day’s close, the trade happens at the next day’s close — you cannot trade on a closing price you have not seen. A rule that is true for weeks (“the price is above its 200-day average”) keeps you in for those weeks; a rule that fires once (“the 50-day crosses above the 200-day”) is true only on the day it happens.
The kinds of rule, in plain words:
Falls and rises — down X% from its highest close in the last N days; up X% from its lowest; at least X% below its highest close since the test began; N down (or up) days in a row; a new N-day high (a breakout) or low.
Averages — the average closing price over the last N days. Price above or below it, or a faster average crossing a slower one (the golden and death crosses). Exponential averages count recent days more, so they react sooner.
Momentum — the price change over the last N days above or below X%. 252 trading days is about a year.
RSI — scores the last N days from 0 to 100 by comparing up days with down days. Under 30 is the classic “oversold” line, over 70 “overbought”.
MACD — the gap between the 12-day and 26-day exponential averages, against a 9-day average of that gap (its signal line). Crossing up means momentum is turning up.
Bollinger bands — two standard deviations either side of the 20-day average. Outside them is an unusually large move.
Volatility — how much the price has been swinging, as a yearly percentage. Calm is low, wild is high.
Calendar — the month is (or is not) between two months. 11 to 4 means November to April.
The business — dividend yield (dividends actually paid over the past year ÷ the price) and P/E (price ÷ the last four quarters of earnings, using only figures already filed by that date). P/E works only for companies that file with the SEC; funds have none.
Beating what you would hold instead (Advanced) — compares the stock’s return with the ticker in “While out, hold”.
Never as a sell rule means hold to the end. From the start as a buy rule means buy on day one.
Stop loss and take profit
A stop loss sells if the price falls that far below what you paid; a take profit sells once you are up that much. Both are checked against each day’s closing price, so a stock that falls straight through your stop in one day sells at that close, possibly well below the stop. They fire on any day, even when the rules only act monthly. 0 turns either off.
Adding money as you go
Switch Adding money as you go on to include deposits in the test; off means just the starting amount. It is never hidden, and it stays exactly as you set it when you load a library strategy.
Regular deposits (dollar-cost averaging) — a fixed amount every week, month, quarter or year. Raise it by a percentage every 1 to 50 years, whatever matches your income: 3% every 2 years means $200 a month becomes $206, then $212.18, and so on.
One-off deposits — any number of them, each a set amount a set time after you start (3 years, or 2.5). One dated after the test ends is not added, and the result says so.
Every line on the chart gets the same deposits on the same days, so the comparison stays fair. Money that arrives while the rules have you out waits with the rest of your cash (or in whatever you chose to wait in). With deposits, the yearly figure is money-weighted: your latest deposit has not had as long to grow as your first, and the figure accounts for that. In My portfolio, each deposit is split across your holdings by their starting share. Saving a strategy saves its money plan too. RUN THEM ALL ranks on the starting amount alone, so every strategy is compared on the same terms.
The Advanced extras
+ and also… — a second condition. AND needs both (buy a dip, but only while above the 200-day); OR takes either (sell on the bounce or if the trend breaks).
While out, hold — put a ticker here (AGG or TLT for bonds) and your money waits there between trades, earning what it earned, instead of sitting in cash earning nothing.
Only act at the start of each month — rules are checked once a month, like most published momentum strategies. Stops and take profits still fire any day.
Cost per trade — charged on every buy and every sell. 0.1% is a fair estimate for a large stock today.
Read it back before you run it
The grey box above the button writes your rules as a sentence. If it does not say what you meant, fix the rule first: the test will answer exactly the question in that sentence.
Reading the result
The first line — what your money became, against just holding the same stock and against the benchmark. Making money is not the test; beating holding is.
Your strategy / Just holding it — the end value and the yearly rate (the steady yearly return that gives the same result).
Worst fall along the way — the biggest drop from a high to a low. Two strategies can end level while one put you through a 50% fall.
Trades and Time invested — how often it traded, and how much of the time your money was actually in the stock.
The chart — all lines start from the same money on the same day. A flat stretch in yours is time spent in cash.
Every trade it made — when it bought, sold, how long it held, what it made (dividends included).
Before you believe this — read it every time.
The Strategy Library
It sits at the top of the page, open while you choose and folded once you load something; the arrow opens it again.
Technical, Quantitative, Fundamental, Pairs trading — strategies that run here, each with the book or paper it comes from. START HERE marks the six worth trying first.
How it works on every card — how it works, why it might, and where it goes wrong.
Variations — the same idea with different numbers. Details shows the exact rule, what that set changes, and its source; Load puts it in the tester.
Not testable yet — real strategies we cannot test with the data here, each saying what it would need.
My strategies — the ones you saved.
RUN THEM ALL & RANK — tests every strategy and variation on your stock at once and ranks them. Expect most to lose to simply holding; that is the honest answer.
Pairs trading and portfolio strategies
Two kinds of strategy are not one-stock rules, so they have their own panels, which appear in place of the rules when you load one. Pairs trading (One stock mode) watches the gap between two related companies, buys the one that fell behind and sells short the one that ran ahead, and closes when the gap narrows; it charges the cost of borrowing the shorted stock every day. Portfolio strategies (My portfolio mode) hold several stocks at once and rebalance on a schedule: the strongest (momentum), weighting by calm (inverse volatility), or the highest yielders (Dogs of the Dow), on a list or on your own portfolio. 1 · Pick a strategy or 4 · Build your own takes you back to the rules.
Saving, and sending one to us
Change anything, press SAVE THIS STRATEGY, name it, and it is kept under My strategies. From there, Send to Portfolio Lab sends us the exact rule privately; good ones may be added to the library for everyone. You need to be signed in to save.
What a backtest cannot tell you
The past is not a forecast. A rule that worked for ten years can fail the next ten.
Trying rules until one wins finds luck. Test hundreds of variations and some will beat holding by chance. A rule you can explain, that works across many stocks and periods, is worth more than the best number on one.
Taxes are not deducted. A rule that trades often would owe tax on each gain.
Cash earns nothing here unless you use “While out, hold”.
Lists are today’s. Portfolio strategies use today’s members of the Dow and other lists, so companies that were dropped or went bust are missing, which flatters the result.
This is for learning, not advice.
TUTORIAL
Pick the section you want walked through. You do not have to sit through the rest.
TELL US WHAT YOU THINK
Everything here is free — we are building this in the open and your feedback genuinely changes what gets built next.
What was confusing, what is missing, what broke?