diff --git a/notebook/indicator.ipynb b/notebook/indicator.ipynb index 1c89c85..ad21c4c 100644 --- a/notebook/indicator.ipynb +++ b/notebook/indicator.ipynb @@ -1,59 +1,22 @@ { "cells": [ { + "cell_type": "code", + "execution_count": 20, + "id": "20775dafbd9f1ae6", "metadata": { - "SqlCellData": { - "data_source_name": "leopard_dev@81.71.3.24", - "variableName$1": "dailies_df" - }, "ExecuteTime": { "end_time": "2026-01-29T08:42:31.684564Z", "start_time": "2026-01-29T08:42:08.250081Z" + }, + "SqlCellData": { + "data_source_name": "leopard_dev@81.71.3.24", + "variableName$1": "dailies_df" } }, - "cell_type": "code", - "source": [ - "%%sql\n", - "select trade_date, open * factor as \"Open\", close * factor as \"Close\", high * factor as \"High\", low * factor as \"Low\", volume as \"Volume\", coalesce(factor, 1.0) as factor\n", - "from leopard_daily daily\n", - " left join leopard_stock stock on stock.id = daily.stock_id\n", - "where stock.code = '000001.SZ'\n", - " and daily.trade_date between '2024-01-01 00:00:00' and '2025-12-31 23:59:59'\n", - "order by daily.trade_date" - ], - "id": "20775dafbd9f1ae6", "outputs": [ { "data": { - "text/plain": [ - " trade_date Open Close High Low \\\n", - "0 2024-01-02 1095.935070 1074.926730 1099.436460 1074.926730 \n", - "1 2024-01-03 1072.592470 1073.759600 1076.093860 1067.923950 \n", - "2 2024-01-04 1072.592470 1063.255430 1072.592470 1059.754040 \n", - "3 2024-01-05 1062.088300 1081.929510 1101.770720 1058.586910 \n", - "4 2024-01-08 1077.260990 1067.923950 1085.430900 1063.255430 \n", - ".. ... ... ... ... ... \n", - "425 2025-10-09 1493.155774 1502.380920 1503.698798 1485.248506 \n", - "426 2025-10-10 1498.427286 1506.334554 1514.241822 1497.109408 \n", - "427 2025-10-13 1491.837896 1502.380920 1510.288188 1486.566384 \n", - "428 2025-10-14 1501.063042 1524.784846 1528.738480 1497.109408 \n", - "429 2025-10-15 1526.130396 1534.205160 1536.896748 1515.364044 \n", - "\n", - " Volume factor \n", - "0 1158366.45 116.7130 \n", - "1 733610.31 116.7130 \n", - "2 864193.99 116.7130 \n", - "3 1991622.16 116.7130 \n", - "4 1121156.19 116.7130 \n", - ".. ... ... \n", - "425 1047469.06 131.7878 \n", - "426 1087947.75 131.7878 \n", - "427 1168801.73 131.7878 \n", - "428 1843428.36 131.7878 \n", - "429 1271061.03 134.5794 \n", - "\n", - "[430 rows x 7 columns]" - ], "text/html": [ "