[06] Portfolio Defense Dashboard — One Screen to Rule Your Morning
This is Part 6 (final) of a 6-part series: Building Investment Systems with Python
The Morning Check
Every day, one question: "Am I safe?"
Not "what's the market doing?" Not "should I buy or sell?" Just: is my system intact?
This final article wires together everything we've built — the ALM database, the stress tester, the commitment line logic, the dividend snowball, and the Monte Carlo engine — into a single Streamlit dashboard.
One command. One screen. Every morning.
$ streamlit run dashboard.py
Enter fullscreen mode
Exit fullscreen mode
The Dashboard
# dashboard.py import streamlit as st import sqlite3 import pandas as pd import plotly.graph_objects as go from datetime import date , timedelta from alm_schema import DB_PATH
st . set_page_config ( page_title = " Life ALM Dashboard " , layout = " wide " )
# ─── Dark Theme ──────────────────────────────────────────── st .…