From b96cdafc7138e1705222ef68fa7199036ce9bf8a Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 3 Mar 2022 11:39:37 -0500 Subject: [PATCH] fix: Divide theo & delta by driver to normalize them Bugs (fixed): * Theo and delta are wrong in time/sales --- src/client/spark/Analytics/Core/GreeksTuple.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/spark/Analytics/Core/GreeksTuple.cs b/src/client/spark/Analytics/Core/GreeksTuple.cs index 28752ae7a..c0470df3c 100644 --- a/src/client/spark/Analytics/Core/GreeksTuple.cs +++ b/src/client/spark/Analytics/Core/GreeksTuple.cs @@ -77,9 +77,9 @@ namespace mbts.analytics { rho ?? greeks_tuple.rho); public static double normalized_theo(this in GreeksTuple greeks_tuple) => - greeks_tuple.theo * greeks_tuple.driver; + greeks_tuple.theo / greeks_tuple.driver; public static double normalized_delta(this in GreeksTuple greeks_tuple) => - greeks_tuple.delta * greeks_tuple.driver; + greeks_tuple.delta / greeks_tuple.driver; } }