I Gave My Habits Ticker Symbols. Here's What My Portfolio Looks Like.
dev.to article -- March 22, 2026 (Wave 2)
Most self-improvement advice treats habits as binary: done or not done. But that's not how behavior actually works.
I spent a weekend building a different model. Here's the premise: what if you managed your habits the way a fund manager manages a portfolio?
Your Habits Are Assets
Think about it. A workout habit, practiced consistently over 5 years, is worth something real -- energy, health, mental clarity. A sleep habit done right compounds like a long-term bond. A reading habit is like dollar-cost averaging into knowledge.
The problem: we track habits like a to-do list. Did you do it? Check. Did you skip it? Uncheck.
That's not how you'd track an investment. You'd look at performance over time. You'd see volatility. You'd understand the cost of selling.
What HabitStock Does
Each habit in HabitStock gets a ticker:
$MRN Morning Run -- 30% portfolio weight
$READ 30min Reading -- 25% portfolio weight
$MEDS Daily Vitamins -- 15% portfolio weight
$NOSC No Social <noon -- 20% portfolio weight
$H2O 8 Glasses Water -- 10% portfolio weight
Your "personal stock price" is the composite. Every day you complete a habit, it moves up. Miss one -- it drops, weighted by 1.8x the equivalent gain (loss aversion, baked into the algorithm).
Chain 7 good days? Streak multiplier kicks in. Your chart starts looking like a bull run.
The Chart Changes Everything
The thing that surprised me most when building this: the chart.
A broken streak looks like a broken streak. But a chart that shows 3 weeks of gains, then a visible dip after a rough travel week -- that's different. You see your performance history as a shape. You understand your volatility.
"My $MRN habit is inconsistent when I travel. My $READ habit is rock solid regardless."
That's data you couldn't get from a streak counter.
The Loss Aversion Engine
The behavioral science backbone:
Kahneman and Tversky's research shows losses feel ~2x worse than equivalent gains feel good. Most apps only use positive mechanics (streaks, badges). HabitStock deliberately uses both.
When you're looking at your chart and considering skipping your workout, the question isn't "do I want to break my streak?" It's "do I want to take a $4.20 hit to my portfolio today?"
That's a subtly different question. And it works differently in my brain.
What It's Built On
Next.js. No backend. All data in localStorage. Chart library is Recharts. The price algorithm:
- Daily completion rate per habit → weighted delta
- Streak bonus: logarithmic multiplier (30-day streak compounds, caps at 3x)
- Miss penalty: 1.8x the equivalent gain (loss aversion coefficient)
- Social layer: optional friend portfolio comparison
Zero cloud, zero tracking, CSV export if you want out.
Try It
habitstock.limed.tech -- free, no login required.
What ticker symbol would your most important habit be?
Curious about the behavioral economics of habit apps -- happy to dig into the research with anyone in the comments.
Top comments (0)