diff --git a/src/routes/options-flow/+page.svelte b/src/routes/options-flow/+page.svelte
index 4deab058..38d54bfa 100644
--- a/src/routes/options-flow/+page.svelte
+++ b/src/routes/options-flow/+page.svelte
@@ -11,7 +11,13 @@
export let data;
-
+const nyseDate = new Date(data?.getOptionsFlowFeed?.at(0)?.date ?? null)?.toLocaleString('en-US', {
+ month: 'short',
+ day: 'numeric',
+ year: 'numeric',
+ timeZone: 'Europe/Berlin'
+});
+
let rawData = [];
let filterList = [];
let displayedData =[];
@@ -507,7 +513,7 @@ $: {
{#if !$isOpen}
- Live flow of {new Date(rawData?.at(0)?.date ?? null)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })} (NYSE Time)
+ Live flow of {nyseDate} (NYSE Time)
{/if}
diff --git a/src/routes/options-zero-dte/+page.svelte b/src/routes/options-zero-dte/+page.svelte
index 505e68a2..7e5f5c10 100644
--- a/src/routes/options-zero-dte/+page.svelte
+++ b/src/routes/options-zero-dte/+page.svelte
@@ -11,7 +11,13 @@
export let data;
-
+ const nyseDate = new Date(data?.getOptionsZeroDTE?.at(0)?.date ?? null)?.toLocaleString('en-US', {
+ month: 'short',
+ day: 'numeric',
+ year: 'numeric',
+ timeZone: 'Europe/Berlin'
+});
+
let rawData = [];
let filterList = [];
@@ -467,7 +473,7 @@ $: {
{#if !$isOpen}
- Live flow of {new Date(rawData?.at(0)?.date ?? null)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })} (NYSE Time)
+ Live flow of {nyseDate} (NYSE Time)
{/if}
diff --git a/src/routes/stocks/[tickerID]/stats/+page.svelte b/src/routes/stocks/[tickerID]/stats/+page.svelte
index b21b46c1..f485b5d9 100644
--- a/src/routes/stocks/[tickerID]/stats/+page.svelte
+++ b/src/routes/stocks/[tickerID]/stats/+page.svelte
@@ -278,7 +278,7 @@ updateYearRange()
-
+
{#if $stockTicker in quantStats && Object.keys(quantStats[$stockTicker]).length > 0}
@@ -363,9 +363,9 @@ updateYearRange()
{#if quantStats[$stockTicker?.toUpperCase()]["Cumulative Return %"] >=0}
- +{quantStats[$stockTicker?.toUpperCase()]["Cumulative Return %"]}%
+ +{abbreviateNumber(quantStats[$stockTicker?.toUpperCase()]["Cumulative Return %"])}%
{:else}
- {quantStats[$stockTicker?.toUpperCase()]["Cumulative Return %"]}%
+ {abbreviateNumber(quantStats[$stockTicker?.toUpperCase()]["Cumulative Return %"])}%
{/if}
|
@@ -667,10 +667,10 @@ updateYearRange()
|
- |
+ |
Max Consecutive Losses
|
-
+ |
{quantStats[$stockTicker?.toUpperCase()]["Max Consecutive Losses"]}
|
@@ -682,7 +682,7 @@ updateYearRange()
|
Gain/Pain Ratio
|
-
+ |
{quantStats[$stockTicker?.toUpperCase()]["Gain/Pain Ratio"]?.toFixed(2)}
|
@@ -752,10 +752,10 @@ updateYearRange()
|
- |
+ |
MTD
|
-
+ |
{#if quantStats[$stockTicker?.toUpperCase()]["MTD %"] >=0}
+{quantStats[$stockTicker?.toUpperCase()]["MTD %"]?.toFixed(2)}%
{:else}
@@ -992,10 +992,10 @@ updateYearRange()
|
- |
+ |
Avg. Drawdown
|
-
+ |
{#if quantStats[$stockTicker?.toUpperCase()]["Avg. Drawdown"] >=0}
+{quantStats[$stockTicker?.toUpperCase()]["Avg. Drawdown"]?.toFixed(2)}%
{:else}
@@ -1049,10 +1049,10 @@ updateYearRange()
|
- |
+ |
Avg. Up Month
|
-
+ |
{#if quantStats[$stockTicker?.toUpperCase()]["Avg. Up Month %"] >=0}
+{quantStats[$stockTicker?.toUpperCase()]["Avg. Up Month %"]?.toFixed(2)}%
{:else}
|