chemouda commited on
Commit
db56fbe
1 Parent(s): 8169893

Update asset_analysis.py

Browse files
Files changed (1) hide show
  1. asset_analysis.py +0 -4
asset_analysis.py CHANGED
@@ -25,8 +25,6 @@ def get_start_date(interval):
25
  if interval in ['1d', '1wk', '1mo']:
26
  years_ago = 5
27
  days_ago = 365*years_ago
28
- elif interval == '1h':
29
- days_ago = 5
30
  else:
31
  years_ago = 2
32
  days_ago = 365*years_ago
@@ -200,8 +198,6 @@ def get_signals(symbol, start_date, end_date, interval):
200
  signals = data.last('7D')
201
  elif interval == '1wk':
202
  signals = data.last('8W') # Changed to 8 weeks
203
- elif interval == '1h':
204
- signals = data.last('1D') # Changed to 8 weeks
205
  else:
206
  signals = data.last('7D') # Default to 1 week for other intervals
207
 
 
25
  if interval in ['1d', '1wk', '1mo']:
26
  years_ago = 5
27
  days_ago = 365*years_ago
 
 
28
  else:
29
  years_ago = 2
30
  days_ago = 365*years_ago
 
198
  signals = data.last('7D')
199
  elif interval == '1wk':
200
  signals = data.last('8W') # Changed to 8 weeks
 
 
201
  else:
202
  signals = data.last('7D') # Default to 1 week for other intervals
203