aboutsummaryrefslogtreecommitdiff
path: root/ema_algo.py
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2025-07-31 17:27:24 -0400
committersotech117 <michael_foiani@brown.edu>2025-07-31 17:27:24 -0400
commit5bf22fc7e3c392c8bd44315ca2d06d7dca7d084e (patch)
tree8dacb0f195df1c0788d36dd0064f6bbaa3143ede /ema_algo.py
parentb832d364da8c2efe09e3f75828caf73c50d01ce3 (diff)
add code for analysis of data
Diffstat (limited to 'ema_algo.py')
-rw-r--r--ema_algo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ema_algo.py b/ema_algo.py
index 8b0899d..43d9543 100644
--- a/ema_algo.py
+++ b/ema_algo.py
@@ -20,6 +20,10 @@ class Ema_Algo(Algo):
def graph_data(self):
return self.g_data
+ @property
+ def params(self):
+ return f'(short={self.shortPeriod}, long={self.longPeriod})'
+
def export_graph(self, g_data):
timestamps = [datetime.fromtimestamp(t) for t in g_data['timestamps']]
ema_5 = g_data['ema_short']