diff --git a/frontend/strategy.html b/frontend/strategy.html
index 46f5ada..fdc0ed1 100644
--- a/frontend/strategy.html
+++ b/frontend/strategy.html
@@ -109,11 +109,12 @@
-
@@ -173,11 +174,14 @@
-
-
-
+ |
+
+
+
+
+
|
@@ -493,6 +497,22 @@
if (this.dteOffset === 0) return 'Today (' + ds + ')';
return 'T+' + this.dteOffset + 'd · ' + ds;
},
+ get hasMultiExpiry() {
+ return new Set(this.activeLegs.map(l => l.expiry)).size > 1;
+ },
+ get expiryBreakdown() {
+ const uniq = [...new Set(this.activeLegs.map(l => l.expiry))].sort();
+ return uniq.map(e => {
+ const rem = Math.max(0, Math.round(legDTE({expiry:e}) - this.dteOffset));
+ return e + ' (' + rem + 'd)';
+ }).join(' · ');
+ },
+ legDTEStr(lv) {
+ const d = legDTE(lv);
+ if (d < 0) return 'exp';
+ if (d < 1) return '<1d';
+ return Math.round(d) + 'd';
+ },
get legsView() {
return this.legs.map(l => {
|