farquasar commited on
Commit
3c599cf
·
verified ·
1 Parent(s): f05d235

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -244,6 +244,7 @@ def make_interactive_fig(y, label, timeframe='1h', ma=5):
244
 
245
  def predict_both_plots(limit, epsilon, ma):
246
  period = f'{limit}d'
 
247
  n_steps = limit
248
  # fetch & normalize both timeframes
249
  btc_1d = fetch_yfinance_data('BTC/USDT', period, '1d')
@@ -251,8 +252,8 @@ def predict_both_plots(limit, epsilon, ma):
251
  btc_1d, _ = normalize(btc_1d)
252
  bch_1d, _ = normalize(bch_1d)
253
 
254
- btc_4h = fetch_yfinance_data('BTC/USDT', period, '4h')
255
- bch_4h = fetch_yfinance_data('BCH/USDT', period, '4h')
256
  btc_4h, _ = normalize(btc_4h)
257
  bch_4h, _ = normalize(bch_4h)
258
 
 
244
 
245
  def predict_both_plots(limit, epsilon, ma):
246
  period = f'{limit}d'
247
+ period_4h = f'{limit//5}d'
248
  n_steps = limit
249
  # fetch & normalize both timeframes
250
  btc_1d = fetch_yfinance_data('BTC/USDT', period, '1d')
 
252
  btc_1d, _ = normalize(btc_1d)
253
  bch_1d, _ = normalize(bch_1d)
254
 
255
+ btc_4h = fetch_yfinance_data('BTC/USDT', period_4h, '4h')
256
+ bch_4h = fetch_yfinance_data('BCH/USDT', period_4h, '4h')
257
  btc_4h, _ = normalize(btc_4h)
258
  bch_4h, _ = normalize(bch_4h)
259