Add K-line data visualization with OHLC, Volume, and Amount charts#1
Add K-line data visualization with OHLC, Volume, and Amount charts#1Copilot wants to merge 3 commits into
Conversation
Co-authored-by: Dingxingdi <203511052+Dingxingdi@users.noreply.github.com>
|
@copilot timestamps,open,high,low,close,volume,amount 使用你生成的代码,再对上面的K线进行画图 |
Co-authored-by: Dingxingdi <203511052+Dingxingdi@users.noreply.github.com>
Generated charts for the new K-line data (March 13-26, 2024) in commit f382467. The new data is saved in |

Visualize stock K-line data as three line charts: OHLC prices, Volume, and Amount.
Changes
kline_data.csv: Raw K-line data (timestamps, OHLC, volume, amount) from Feb-Mar 2024kline_data_new.csv: Additional K-line data from Mar 13-26, 2024plot_kline.py: Python script using pandas/matplotlib to generate stacked line chartskline_charts.png: Generated visualization output for Feb-Mar 2024 datakline_charts_new.png: Generated visualization output for Mar 13-26, 2024 dataUsage
Feb-Mar 2024 Data Visualization
Mar 13-26, 2024 Data Visualization
Original prompt
timestamps,open,high,low,close,volume,amount
2024-02-01 14:30:00,8.01,8.04,7.98,8.0,1207.0,967886.0
2024-02-01 14:45:00,8.0,8.05,8.0,8.01,1548.0,1242293.0
2024-02-01 15:00:00,8.01,8.05,8.01,8.01,1599.0,1284167.0
2024-02-02 09:45:00,8.01,8.14,7.93,7.98,5904.0,4745840.0
2024-02-02 10:00:00,7.97,7.97,7.84,7.87,5380.0,4245948.0
2024-02-02 10:15:00,7.87,7.93,7.83,7.83,2953.0,2326793.0
2024-02-02 10:30:00,7.83,7.85,7.78,7.78,3316.0,2589902.0
2024-02-02 10:45:00,7.79,7.81,7.76,7.79,1800.0,1401012.0
2024-02-02 11:00:00,7.79,7.79,7.73,7.78,2646.0,2053663.0
2024-02-02 11:15:00,7.78,7.79,7.7,7.71,1955.0,1512157.0
2024-02-02 11:30:00,7.7,7.72,7.66,7.66,1556.0,1197495.0
2024-02-02 13:15:00,7.65,7.66,7.54,7.56,4280.0,3251092.0
2024-02-02 13:30:00,7.55,7.6,7.48,7.52,3378.0,2544723.0
2024-02-02 13:45:00,7.52,7.52,7.39,7.42,3423.0,2547189.0
2024-02-02 14:00:00,7.43,7.48,7.35,7.35,2297.0,1703359.0
2024-02-02 14:15:00,7.34,7.37,7.29,7.34,3695.0,2710259.0
2024-02-02 14:30:00,7.34,7.37,7.19,7.35,3986.0,2895928.0
2024-02-02 14:45:00,7.36,7.56,7.36,7.54,3588.0,2681312.0
2024-02-02 15:00:00,7.54,7.55,7.43,7.47,2382.0,1786425.0
2024-02-05 09:45:00,7.35,7.35,6.91,6.92,12942.0,9149998.0
2024-02-05 10:00:00,6.93,6.93,6.82,6.82,5244.0,3600080.0
2024-02-05 10:15:00,6.82,6.86,6.67,6.7,5095.0,3439808.0
2024-02-05 10:30:00,6.69,6.69,6.6,6.62,5552.0,3688332.0
2024-02-05 10:45:00,6.63,6.64,6.46,6.46,3356.0,2198232.0
2024-02-05 11:00:00,6.47,6.58,6.41,6.57,3681.0,2392991.0
2024-02-05 11:15:00,6.56,6.7,6.56,6.67,1568.0,1042432.0
2024-02-05 11:30:00,6.66,6.7,6.63,6.64,1254.0,834982.0
2024-02-05 13:15:00,6.64,6.65,6.48,6.56,2667.0,1745880.0
2024-02-05 13:30:00,6.56,6.79,6.55,6.79,1928.0,1291601.0
2024-02-05 13:45:00,6.79,6.92,6.77,6.84,2369.0,1624006.0
2024-02-05 14:00:00,6.82,7.0,6.82,6.99,2158.0,1494234.0
2024-02-05 14:15:00,7.0,7.0,6.89,6.92,1314.0,909019.0
2024-02-05 14:30:00,6.91,6.91,6.79,6.8,1706.0,1170360.0
2024-02-05 14:45:00,6.79,6.81,6.7,6.7,1955.0,1321437.0
2024-02-05 15:00:00,6.71,6.71,6.64,6.64,2614.0,1745686.0
2024-02-06 09:45:00,6.3,6.47,6.08,6.14,13104.0,8193290.0
2024-02-06 10:00:00,6.15,6.4,6.15,6.35,6410.0,4052928.0
2024-02-06 10:15:00,6.35,6.48,6.34,6.42,4721.0,3027305.0
2024-02-06 10:30:00,6.42,6.46,6.28,6.29,2873.0,1833783.0
2024-02-06 10:45:00,6.3,6.42,6.3,6.36,1834.0,1169031.0
2024-02-06 11:00:00,6.35,6.39,6.32,6.32,1779.0,1130248.0
2024-02-06 11:15:00,6.31,6.32,6.28,6.29,2484.0,1565735.0
2024-02-06 11:30:00,6.28,6.28,6.24,6.27,1867.0,1168864.0
2024-02-06 13:15:00,6.28,6.58,6.28,6.57,6310.0,4062392.0
2024-02-06 13:30:00,6.57,6.7,6.56,6.68,4223.0,2806246.0
2024-02-06 13:45:00,6.69,6.99,6.69,6.99,4968.0,3400821.0
2024-02-06 14:00:00,6.99,7.01,6.83,6.83,3114.0,2156400.0
2024-02-06 14:15:00,6.83,6.85,6.76,6.79,1949.0,1325365.0
2024-02-06 14:30:00,6.78,6.81,6.72,6.72,3016.0,2040173.0
2024-02-06 14:45:00,6.72,6.76,6.66,6.7,3293.0,2209566.0
2024-02-06 15:00:00,6.71,6.83,6.69,6.8,2835.0,1916692.0
2024-02-07 09:45:00,6.74,6.82,6.56,6.6,13143.0,8730703.0
2024-02-07 10:00:00,6.61,6.71,6.53,6.68,8841.0,5850369.0
2024-02-07 10:15:00,6.68,6.78,6.66,6.72,5569.0,3734500.0
2024-02-07 10:30:00,6.72,6.8,6.71,6.72,3602.0,2434416.0
2024-02-07 10:45:00,6.74,6.75,6.64,6.67,3970.0,2656991.0
2024-02-07 11:00:00,6.67,6.7,6.64,6.64,2519.0,1680302.0
2024-02-07 11:15:00,6.66,6.67,6.64,6.65,1335.0,888323.0
2024-02-07 11:30:00,6.67,6.69,6.65,6.66,1451.0,966869.0
2024-02-07 13:15:00,6.66,6.66,6.59,6.6,3308.0,2186999.0
2024-02-07 13:30:00,6.59,6.59,6.46,6.48,4233.0,2763447.0
2024-02-07 13:45:00,6.49,6.5,6.39,6.42,3295.0,2123954.0
2024-02-07 14:00:00,6.42,6.45,6.3,6.33,5779.0,3685819.0
2024-02-07 14:15:00,6.33,6.33,6.24,6.31,3985.0,2505656.0
2024-02-07 14:30:00,6.31,6.31,6.24,6.25,4288.0,2691077.0
2024-02-07 14:45:00,6.25,6.36,6.25,6.35,2477.0,1561836.0
2024-02-07 15:00:00,6.35,6.36,6.31,6.34,4503.0,2855029.0
2024-02-08 09:45:00,6.3,6.45,6.16,6.36,16225.0,10213309.0
2024-02-08 10:00:00,6.36,6.44,6.32,6.44,5771.0,3678929.0
2024-02-08 10:15:00,6.44,6.53,6.39,6.52,7253.0,4681682.0
2024-02-08 10:30:00,6.5,6.56,6.5,6.51,4694.0,3062718.0
2024-02-08 10:45:00,6.51,6.51,6.41,6.46,2157.0,1390637.0
2024-02-08 11:00:00,6.46,6.56,6.45,6.55,3142.0,2049299.0
2024-02-08 11:15:00,6.54,6.59,6.51,6.58,2825.0,1850728.0
2024-02-08 11:30:00,6.57,6.68,6.57,6.66,2863.0,1901219.0
2024-02-08 13:15:00,6.7,6.97,6.7,6.93,6940.0,4751632.0
2024-02-08 13:30:00,6.92,6.92,6.81,6.88,3784.0,2598698.0
2024-02-08 13:45:00,6.87,6.91,6.78,6.91,5518.0,3775785.0
2024-02-08 14:00:00,6.9,6.91,6.85,6.86,2764.0,1903439.0
2024-02-08 14:15:00,6.86,6.98,6.84,6.94,2688.0,1861798.0
2024-02-08 14:30:00,6.93,6.98,6.9,6.93,2143.0,1485761.0
2024-02-08 14:45:00,6.93,6.99,6.91,6.99,2555.0,1776539.0
2024-02-08 15:00:00,6.99,7.05,6.99,7.04,4344.0,3050658.0
2024-02-19 09:45:00,7.06,7.5,7.06,7.41,19142.0,14081837.0
2024-02-19 10:00:00,7.41,7.54,7.4,7.51,7627.0,5701834.0
2024-02-19 10:15:00,7.51,7.56,7.48,7.48,5494.0,4133210.0
2024-02-19 10:30:00,7.48,7.55,7.46,7.55,3642.0,2735203.0
2024-02-19 10:45:00,7.55,7.56...
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.