diff options
author | sotech117 <michael_foiani@brown.edu> | 2025-07-31 17:27:24 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2025-07-31 17:27:24 -0400 |
commit | 5bf22fc7e3c392c8bd44315ca2d06d7dca7d084e (patch) | |
tree | 8dacb0f195df1c0788d36dd0064f6bbaa3143ede /ema_algo.py | |
parent | b832d364da8c2efe09e3f75828caf73c50d01ce3 (diff) |
add code for analysis of data
Diffstat (limited to 'ema_algo.py')
-rw-r--r-- | ema_algo.py | 4 |
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'] |