diff --git a/frontend/strategy.html b/frontend/strategy.html
index fdc0ed1..9c11e09 100644
--- a/frontend/strategy.html
+++ b/frontend/strategy.html
@@ -65,6 +65,7 @@
Strategy P/L Analyzer
+
·
·
Spot
@@ -513,6 +514,14 @@
if (d < 1) return '<1d';
return Math.round(d) + 'd';
},
+ get dteSummary() {
+ const uniq = [...new Set(this.activeLegs.map(l => l.expiry))];
+ if (uniq.length === 0) return '';
+ const days = uniq.map(e => Math.max(0, Math.round(legDTE({expiry:e}))));
+ if (days.length === 1) return days[0] + ' DTE';
+ days.sort((a,b) => a - b);
+ return days.join(' / ') + ' DTE';
+ },
get legsView() {
return this.legs.map(l => {