From ae7589a03148713b008d5f512255fe4f00b6a254 Mon Sep 17 00:00:00 2001 From: Azmikun1 Date: Wed, 3 Jun 2026 10:01:58 +0700 Subject: [PATCH] update --- app.py | 7 ++----- eth_backup.csv | 42 +++++++++++++++++++++++++++++++++++++++++- test_koneksi.py | 2 +- 3 files changed, 44 insertions(+), 7 deletions(-) diff --git a/app.py b/app.py index cad3c80..5e9cc62 100644 --- a/app.py +++ b/app.py @@ -110,7 +110,7 @@ def load_eth_data(): new_cols.append(col_name) df.columns = new_cols - # Pastikan kolom pertama adalah Date + # Kolom pertama adalah Date if 'Date' not in df.columns: df = df.rename(columns={df.columns[0]: 'Date'}) @@ -253,10 +253,7 @@ def create_combined_chart(df, start_date, future_dates, future_predictions): fig, ax = plt.subplots(figsize=(14, 8)) - ax.plot( - recent_df["Date"], recent_df["Close"], - color="gray", linewidth=1.0, label="Harga Aktual (Harian)", alpha=0.5 - ) + ax.plot( recent_df["Date"], recent_df["Trend_Aktual"], color="#1f77b4", linewidth=2.5, label="Tren Harga Aktual", alpha=0.9 diff --git a/eth_backup.csv b/eth_backup.csv index d4ba53b..a7d71a9 100644 --- a/eth_backup.csv +++ b/eth_backup.csv @@ -801,4 +801,44 @@ Date,Close,High,Low,Open,Volume 2026-03-10,2037.1204833984375,2087.9853515625,1992.01416015625,1992.986083984375,23552353781 2026-03-11,2051.5732421875,2085.286376953125,2008.0386962890625,2037.1212158203125,19031715359 2026-03-12,2073.13623046875,2094.32568359375,2019.27783203125,2051.7666015625,20624954899 -2026-03-13,2125.253173828125,2143.545654296875,2073.826171875,2073.826171875,24834414592 +2026-03-13,2092.5634765625,2206.813232421875,2071.582275390625,2073.289306640625,29345212033 +2026-03-14,2097.086669921875,2105.5712890625,2062.659423828125,2092.558349609375,10073411269 +2026-03-15,2177.476318359375,2201.95556640625,2084.20947265625,2096.880859375,15333885132 +2026-03-16,2351.176025390625,2384.466552734375,2166.00244140625,2177.782958984375,38938369545 +2026-03-17,2318.053466796875,2375.455078125,2297.668701171875,2351.134765625,26737564550 +2026-03-18,2203.671630859375,2348.904296875,2154.584228515625,2318.556884765625,25617966362 +2026-03-19,2137.423828125,2232.203857421875,2099.88916015625,2203.478759765625,24090913749 +2026-03-20,2146.4970703125,2175.699462890625,2117.276123046875,2137.394287109375,17970488517 +2026-03-21,2076.68994140625,2166.7158203125,2072.38330078125,2146.7099609375,8654913047 +2026-03-22,2053.04833984375,2125.9765625,2027.0478515625,2077.201171875,16438149794 +2026-03-23,2152.14599609375,2195.99169921875,2023.2718505859375,2052.953125,28509077302 +2026-03-24,2155.704345703125,2174.325927734375,2103.3828125,2152.114501953125,18389631713 +2026-03-25,2168.021484375,2198.369873046875,2146.6162109375,2155.719482421875,17086301657 +2026-03-26,2059.578369140625,2171.156982421875,2033.7310791015625,2168.02880859375,18628112246 +2026-03-27,1991.27197265625,2075.17041015625,1971.5067138671875,2059.44873046875,19453998121 +2026-03-28,1992.694580078125,2038.7030029296875,1982.1300048828125,1991.283447265625,8641221084 +2026-03-29,1982.5596923828125,2016.545166015625,1939.5286865234375,1992.69384765625,9451184647 +2026-03-30,2023.514892578125,2082.064697265625,1979.076904296875,1982.5506591796875,17840662425 +2026-03-31,2104.708251953125,2118.796875,2011.7952880859375,2023.5206298828125,21278561395 +2026-04-01,2138.737060546875,2165.666259765625,2082.291748046875,2104.717529296875,19542997434 +2026-04-02,2056.8525390625,2158.15771484375,2016.989990234375,2138.7236328125,18847170816 +2026-04-03,2053.38525390625,2075.764404296875,2042.176025390625,2056.704833984375,9609678843 +2026-04-04,2065.3515625,2082.00244140625,2044.87158203125,2053.58447265625,6926913517 +2026-04-05,2108.99560546875,2120.49951171875,2022.6453857421875,2065.37060546875,9928800793 +2026-04-06,2107.761474609375,2172.985107421875,2089.10009765625,2108.935791015625,19097527675 +2026-04-07,2241.806640625,2270.594970703125,2061.467529296875,2107.784912109375,22588914083 +2026-04-08,2190.33544921875,2269.8798828125,2181.231201171875,2242.276611328125,21469476310 +2026-04-09,2189.14404296875,2243.972900390625,2158.017578125,2190.33251953125,17218638798 +2026-04-10,2245.148681640625,2257.18408203125,2176.851318359375,2189.380859375,17131968712 +2026-04-11,2285.39013671875,2327.457763671875,2230.751953125,2245.1044921875,12620960384 +2026-04-12,2192.201171875,2288.448486328125,2177.485595703125,2285.43017578125,15307071617 +2026-04-13,2370.71484375,2393.759033203125,2176.32470703125,2192.33154296875,23709131572 +2026-04-14,2323.30859375,2415.52734375,2304.412353515625,2370.314453125,25185167270 +2026-04-15,2359.43701171875,2384.999267578125,2310.70703125,2323.34326171875,17004367348 +2026-04-16,2348.64501953125,2369.17236328125,2285.7099609375,2359.70458984375,20602833116 +2026-04-17,2421.07177734375,2464.783447265625,2318.141845703125,2348.85498046875,26467618336 +2026-04-18,2351.1005859375,2427.278076171875,2341.125732421875,2421.102294921875,14400085617 +2026-04-19,2264.9169921875,2355.783203125,2254.697509765625,2350.86181640625,17083701612 +2026-04-20,2315.21240234375,2346.2734375,2262.052978515625,2264.87353515625,19084768822 +2026-04-21,2327.970458984375,2338.012451171875,2287.3798828125,2315.178466796875,16107716719 +2026-04-23,2365.10009765625,2378.58349609375,2362.005126953125,2375.115478515625,23448530944 diff --git a/test_koneksi.py b/test_koneksi.py index cd3ffab..95d155f 100644 --- a/test_koneksi.py +++ b/test_koneksi.py @@ -14,7 +14,7 @@ print(f"Tanggal mulai: {start_date}") print("-" * 30) try: - # Kita akan mencoba mengunduh data dengan cara yang paling dasar + # Kita akan mencoba mengunduh data data = yf.download( tickers=ticker_symbol, start=start_date,