Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重画蜡烛图和A股表现 #63

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/CDLHOMINGPIGEON.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/CDLIDENTICAL3CROWS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/CDLINNECK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/CDLINVERTEDHAMMER.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/CDLKICKING.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/CDLKICKINGBYLENGTH.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/homingpigeon.png
Binary file not shown.
27 changes: 26 additions & 1 deletion source/API/Pattern Recognition/CDLHOMINGPIGEON.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
二日 K 线模式,与母子线类似,不同的的是二日 K 线颜色相同,第二日最高价、最低价都在第一日实体之内

## 图例
![](/assets/homingpigeon.png)
![](/assets/CDLHOMINGPIGEON.png)

## 使用案例

Expand Down Expand Up @@ -414,3 +414,28 @@ df.loc[df['signal']==100]
</tbody>
</table>
</div>


## A股中的效果


```python

```

1_change 3_change 5_change 10_change
CDLHOMINGPIGEON
100 count 41291.000000 41264.000000 41243.000000 41204.000000
mean -0.004941 -0.004228 -0.002204 -0.005373
std 0.025917 0.052336 0.068649 0.113640
min -0.206762 -0.357728 -0.439067 -0.563098
25% -0.016761 -0.031250 -0.040563 -0.059223
50% -0.000976 -0.002215 -0.001119 -0.008163
75% 0.008206 0.023552 0.034377 0.043560
max 0.484210 0.574090 1.010418 11.381250



```python

```
23 changes: 23 additions & 0 deletions source/API/Pattern Recognition/CDLIDENTICAL3CROWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,26 @@ date         open high low close signal
"""
```

## A股中的效果


```python

```

1_change 3_change 5_change 10_change
CDLIDENTICAL3CROWS
-100 count 1636.000000 1635.000000 1616.000000 1612.000000
mean -0.018174 -0.014900 -0.012500 -0.012173
std 0.023991 0.045415 0.060910 0.097351
min -0.100461 -0.270723 -0.303350 -0.456723
25% -0.027332 -0.034895 -0.043235 -0.059052
50% -0.010682 -0.009430 -0.009754 -0.011981
75% -0.001608 0.010996 0.020966 0.035546
max 0.073600 0.193628 0.283660 0.942856



```python

```
21 changes: 21 additions & 0 deletions source/API/Pattern Recognition/CDLINNECK.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,3 +379,24 @@ df
</div>


## A股中的效果
```python

```

1_change 3_change 5_change 10_change
CDLINNECK
-100 count 18078.000000 18048.000000 18038.000000 18020.000000
mean 0.007604 0.008516 0.010425 0.014113
std 0.026975 0.055211 0.075509 0.107589
min -0.212500 -0.259894 -0.343319 -0.514754
25% -0.003001 -0.020129 -0.027309 -0.041033
50% 0.006849 0.007175 0.008568 0.009181
75% 0.018232 0.034078 0.046215 0.064810
max 1.212903 1.158710 1.258065 1.358492



```python

```
23 changes: 23 additions & 0 deletions source/API/Pattern Recognition/CDLINVERTEDHAMMER.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,26 @@ df
</tbody>
</table>
</div>


## A股中的效果
```python

```

1_change 3_change 5_change 10_change
CDLINVERTEDHAMMER
100 count 133889.000000 133816.000000 133448.000000 133186.000000
mean -0.020113 -0.015629 -0.014293 -0.005588
std 0.035152 0.078431 0.112908 0.154934
min -0.443263 -0.670820 -0.895652 -0.890087
25% -0.032846 -0.043796 -0.053719 -0.063603
50% -0.012122 -0.010929 -0.011857 -0.010527
75% -0.000465 0.015780 0.024939 0.044777
max 5.854813 11.078954 21.985922 23.202822



```python

```
33 changes: 32 additions & 1 deletion source/API/Pattern Recognition/CDLKICKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

调用方法:signal = talib.CDLKICKING(open, high, low, close)

输出:0代表不符合k线形态,100表示符合形态
输出:0代表不符合k线形态,100表示符合形态助涨上升,-100表示符合形态助涨下降

## 指标介绍
两日 K 线为秃线,颜色相反,存在跳空缺口。
Expand Down Expand Up @@ -281,3 +281,34 @@ df
</div>


## A股中的效果


```python

```

1_change 3_change 5_change 10_change
CDLKICKING
-100 count 33.000000 3.300000e+01 33.000000 33.000000
mean -0.032997 -2.667087e-02 -0.035828 -0.069075
std 0.034754 5.890458e-02 0.072660 0.092591
min -0.100239 -1.518622e-01 -0.212103 -0.391218
25% -0.060717 -6.125658e-02 -0.075343 -0.114997
50% -0.019680 -2.020015e-02 -0.040957 -0.058578
75% -0.005953 7.289901e-07 -0.009309 -0.010542
max 0.006654 1.241830e-01 0.221258 0.071296
100 count 42.000000 4.200000e+01 42.000000 42.000000
mean 0.053339 5.249602e-02 0.055474 0.045908
std 0.034339 6.395410e-02 0.080962 0.105781
min -0.031133 -7.951700e-02 -0.113252 -0.158215
25% 0.039179 1.834917e-02 0.020930 -0.012737
50% 0.053004 4.800140e-02 0.043761 0.039346
75% 0.067474 7.656228e-02 0.074470 0.090360
max 0.140659 3.043948e-01 0.445055 0.494506



```python

```
36 changes: 33 additions & 3 deletions source/API/Pattern Recognition/CDLKICKINGBYLENGTH.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

调用方法:signal = talib.CDLKICKINGBYLENGTH(open, high, low, close)

输出:0代表不符合k线形态,100表示符合形态
输出:0代表不符合k线形态,100表示符合形态且趋势为上涨,-100表示符合形态且趋势为下降

## 指标介绍
与反冲形态类似,两日 K 线为秃线,颜色相反,存在跳空缺口,有较长缺影线
Expand All @@ -17,8 +17,8 @@

## 使用案例


```python
```python
# 展示数据

df
Expand Down Expand Up @@ -387,5 +387,35 @@ df
</table>
</div>

## A股中的效果


```python

```

1_change 3_change 5_change 10_change
CDLKICKINGBYLENGTH
-100 count 34.000000 34.000000 34.000000 34.000000
mean -0.007841 -0.016155 -0.022610 -0.041424
std 0.048977 0.053996 0.069411 0.102395
min -0.100239 -0.151862 -0.212103 -0.391218
25% -0.031393 -0.040880 -0.074766 -0.091045
50% -0.007009 -0.013672 -0.019911 -0.034118
75% 0.027526 0.019026 0.032212 0.032546
max 0.082927 0.081707 0.112195 0.168292
100 count 41.000000 41.000000 41.000000 41.000000
mean 0.034584 0.045706 0.046739 0.025783
std 0.052946 0.075367 0.092650 0.116994
min -0.099679 -0.113183 -0.120257 -0.223795
25% 0.006536 0.002000 0.003984 -0.050997
50% 0.043956 0.029326 0.039999 0.035372
75% 0.067193 0.079671 0.074510 0.084979
max 0.140659 0.304395 0.445055 0.494506



```python

```