update
This commit is contained in:
parent
ae7589a031
commit
aab7013f5e
16
app.py
16
app.py
|
|
@ -258,10 +258,20 @@ def create_combined_chart(df, start_date, future_dates, future_predictions):
|
||||||
recent_df["Date"], recent_df["Trend_Aktual"],
|
recent_df["Date"], recent_df["Trend_Aktual"],
|
||||||
color="#1f77b4", linewidth=2.5, label="Tren Harga Aktual", alpha=0.9
|
color="#1f77b4", linewidth=2.5, label="Tren Harga Aktual", alpha=0.9
|
||||||
)
|
)
|
||||||
|
# Membuat tren prediksi menggunakan moving average 7 hari
|
||||||
|
pred_trend = (
|
||||||
|
pd.Series(predictions_flat)
|
||||||
|
.rolling(window=7, min_periods=1)
|
||||||
|
.mean()
|
||||||
|
)
|
||||||
|
|
||||||
ax.plot(
|
ax.plot(
|
||||||
future_dates, predictions_flat,
|
future_dates,
|
||||||
color="#d62728", linewidth=2.5, label="Harga Prediksi (GRU)",
|
pred_trend,
|
||||||
alpha=0.9, marker="o", markersize=4
|
color="#d62728",
|
||||||
|
linewidth=2.5,
|
||||||
|
label="Tren Harga Prediksi (GRU)",
|
||||||
|
alpha=0.9
|
||||||
)
|
)
|
||||||
ax.scatter(
|
ax.scatter(
|
||||||
recent_df["Date"], recent_df["Close"],
|
recent_df["Date"], recent_df["Close"],
|
||||||
|
|
|
||||||
|
|
@ -841,4 +841,45 @@ Date,Close,High,Low,Open,Volume
|
||||||
2026-04-19,2264.9169921875,2355.783203125,2254.697509765625,2350.86181640625,17083701612
|
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-20,2315.21240234375,2346.2734375,2262.052978515625,2264.87353515625,19084768822
|
||||||
2026-04-21,2327.970458984375,2338.012451171875,2287.3798828125,2315.178466796875,16107716719
|
2026-04-21,2327.970458984375,2338.012451171875,2287.3798828125,2315.178466796875,16107716719
|
||||||
2026-04-23,2365.10009765625,2378.58349609375,2362.005126953125,2375.115478515625,23448530944
|
2026-04-22,2376.088134765625,2422.8603515625,2314.590087890625,2327.96484375,22465555335
|
||||||
|
2026-04-23,2331.513916015625,2380.135986328125,2287.55322265625,2376.087890625,19909161913
|
||||||
|
2026-04-24,2315.690185546875,2337.2666015625,2301.52734375,2331.56884765625,13371168064
|
||||||
|
2026-04-25,2318.8291015625,2323.410400390625,2302.201171875,2315.741455078125,6545621782
|
||||||
|
2026-04-26,2369.72900390625,2379.32421875,2307.565185546875,2318.906494140625,10622966933
|
||||||
|
2026-04-27,2303.06396484375,2403.7265625,2267.409423828125,2369.841796875,17879618684
|
||||||
|
2026-04-28,2289.419677734375,2310.442138671875,2259.057373046875,2303.079833984375,12761522276
|
||||||
|
2026-04-29,2253.415771484375,2345.939697265625,2221.223876953125,2289.412109375,21884731493
|
||||||
|
2026-04-30,2256.251220703125,2277.71826171875,2232.130859375,2253.484375,12309496389
|
||||||
|
2026-05-01,2295.09375,2324.7880859375,2256.078125,2256.344970703125,13243880777
|
||||||
|
2026-05-02,2316.23193359375,2339.74365234375,2292.72265625,2295.04443359375,6905015549
|
||||||
|
2026-05-03,2321.6357421875,2354.710205078125,2297.55322265625,2316.2109375,9861070993
|
||||||
|
2026-05-04,2346.39697265625,2397.6083984375,2309.260986328125,2321.81640625,25497505008
|
||||||
|
2026-05-05,2361.1826171875,2398.83349609375,2344.934326171875,2346.4150390625,17739612383
|
||||||
|
2026-05-06,2350.802001953125,2423.040283203125,2338.483154296875,2361.290771484375,22745786496
|
||||||
|
2026-05-07,2291.107666015625,2351.738037109375,2280.814697265625,2350.8525390625,23409823896
|
||||||
|
2026-05-08,2306.97216796875,2320.692138671875,2265.833251953125,2291.07568359375,20013463010
|
||||||
|
2026-05-09,2326.727294921875,2336.927001953125,2300.544921875,2307.069580078125,12217205123
|
||||||
|
2026-05-10,2369.0439453125,2381.263916015625,2313.127197265625,2326.744384765625,19587186882
|
||||||
|
2026-05-11,2339.36083984375,2374.303466796875,2305.080810546875,2369.193359375,15525623296
|
||||||
|
2026-05-12,2274.6435546875,2339.6904296875,2256.41943359375,2339.287109375,16145394773
|
||||||
|
2026-05-13,2257.576416015625,2322.233154296875,2233.55322265625,2274.591796875,15193768365
|
||||||
|
2026-05-14,2280.934814453125,2317.948486328125,2238.471923828125,2257.57177734375,17563432027
|
||||||
|
2026-05-15,2223.328857421875,2298.686279296875,2204.765380859375,2280.933349609375,18146855938
|
||||||
|
2026-05-16,2179.751953125,2229.845947265625,2162.048828125,2223.33837890625,11451672017
|
||||||
|
2026-05-17,2127.645263671875,2196.7822265625,2097.02099609375,2179.8544921875,10143205921
|
||||||
|
2026-05-18,2128.51611328125,2155.964111328125,2078.6162109375,2127.681396484375,19890789125
|
||||||
|
2026-05-19,2109.9638671875,2143.56298828125,2093.475341796875,2128.531982421875,12030742868
|
||||||
|
2026-05-20,2126.9833984375,2146.50634765625,2101.83349609375,2109.85400390625,12076799234
|
||||||
|
2026-05-21,2131.41064453125,2154.22216796875,2103.46044921875,2127.17236328125,14344389472
|
||||||
|
2026-05-22,2064.636962890625,2138.97998046875,2056.92919921875,2131.3701171875,13229489284
|
||||||
|
2026-05-23,2115.951416015625,2145.579345703125,2010.5504150390625,2064.634765625,16650709488
|
||||||
|
2026-05-24,2097.993896484375,2127.309814453125,2061.329833984375,2115.544921875,10602558120
|
||||||
|
2026-05-25,2111.370361328125,2138.411376953125,2090.516357421875,2097.993896484375,10167436482
|
||||||
|
2026-05-26,2070.858154296875,2138.006103515625,2054.361083984375,2111.366455078125,15924080901
|
||||||
|
2026-05-27,2022.1982421875,2092.980712890625,2014.632568359375,2070.86669921875,14534289020
|
||||||
|
2026-05-28,2007.552734375,2025.7589111328125,1966.2794189453125,2022.0908203125,18109844096
|
||||||
|
2026-05-29,2011.978515625,2042.5430908203125,1975.1915283203125,2007.5496826171875,14941194039
|
||||||
|
2026-05-30,2019.458251953125,2028.4417724609375,2000.165771484375,2011.909423828125,7478416074
|
||||||
|
2026-05-31,2004.341552734375,2034.1192626953125,1991.90673828125,2019.242431640625,9253505209
|
||||||
|
2026-06-01,2003.22119140625,2017.6077880859375,1956.1522216796875,2004.2425537109375,19458810001
|
||||||
|
2026-06-03,1848.1400146484375,1870.7220458984375,1848.860107421875,1857.32568359375,25659957248
|
||||||
|
|
|
||||||
|
Loading…
Reference in New Issue