Skip to content

Commit

Permalink
[GH-11] Retrieve all indicators
Browse files Browse the repository at this point in the history
Use `init_all` to initialize all indicators with shortcuts.
  • Loading branch information
jealous committed Jan 7, 2022
1 parent 68f105d commit 490d15d
Show file tree
Hide file tree
Showing 3 changed files with 426 additions and 467 deletions.
12 changes: 11 additions & 1 deletion README.md
Expand Up @@ -4,7 +4,7 @@
[![codecov](https://codecov.io/gh/jealous/stockstats/branch/master/graph/badge.svg?token=IFMD1pVJ7T)](https://codecov.io/gh/jealous/stockstats)
[![pypi](https://img.shields.io/pypi/v/stockstats.svg)](https://pypi.python.org/pypi/stockstats)

VERSION: 0.4.0
VERSION: 0.4.1

## Introduction

Expand Down Expand Up @@ -125,6 +125,9 @@ date
20160817 62536480.0 40.45 40.59 39.12 1567600
```

Use `unwrap` to convert it back to a `pandas.DataFrame`.
Note that `unwrap` won't reset the columns and the index.

### Access the Data

`StockDataFrame` is a subclass of `pandas.DataFrame`. All the functions
Expand Down Expand Up @@ -171,6 +174,13 @@ For example:
Normally, these statistics have default windows.
Check their document for detail.

#### Initialize all indicators with shortcuts

Some indicators, such as: KDJ, BOLL, MFI, have shortcuts. Use `df.init_all()`
to initialize the series of all these indicators.

This operation generates lots of columns. Please use it with caution.

### Statistics/Indicators

Some statistics has configurable parameters. They are class level fields. Change
Expand Down

0 comments on commit 490d15d

Please sign in to comment.