File size: 1,608 Bytes
44977bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91bea57
 
 
 
 
 
 
 
 
 
 
 
 
 
44977bb
 
 
91bea57
44977bb
91bea57
44977bb
91bea57
 
 
 
44977bb
91bea57
 
 
44977bb
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>IMPHNEN</title>
  <style>
    table {
      border-collapse: collapse;
      width: 100%;
      border: 1px solid black; /* Add this line */
    }

    th, td {
      border: 1px solid black;
      padding: 8px;
      text-align: left;
    }

    th {
      background-color: #f2f2f2;
    }

    tr:nth-child(even) {
      background-color: #f2f2f2;
    }

    .table-container {
      max-height: 400px;
      overflow-y: auto;
    }
  </style>
</head>
<body>
  <h1>Forecasting Harga Pembukaan Mata Uang Kripto Cardano (ADA) dengan Random Forest</h1>
  <p>Data terakhir diambil tanggal : 2024-09-30</p>

  <form action="{{ url_for('predict') }}" method="post">
    <label for="timeframe">Pilih rentang waktu:</label>
    <select name="waktu" id="timeframe">
      <option value="1 bulan">1 Bulan</option>
      <option value="3 bulan">3 Bulan</option>
      <option value="6 bulan">6 Bulan</option>
      <option value="1 tahun">1 Tahun</option>
    </select>
    <button type="submit">Submit</button>
  </form>

  <div class="container my-5">
    <h2>DataFrame Display</h2>
    <div class="table-container">
        {{ table_html|safe }}
    </div>
  </div>

  <div class="container my-5">
    <h2>Pergerakan Harga Pembukaan dan Terakhir MA 30</h2>
    <img src="{{ plot_ma_a }}" alt="Plot">
  </div>

  <div class="container my-5">
    <h2>Pergerakan Harga Tertinggi dan Terendah MA 30</h2>
    <img src="{{ plot_ma_b }}" alt="Plot">
  </div>
</body>
</html>