-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: general updates for v0.6.0 (#182)
+semver: minor Co-authored-by: Dave Skender <[email protected]>
- Loading branch information
1 parent
8e0a1e5
commit 4de7202
Showing
13 changed files
with
433 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
### CandleResult | ||
|
||
| name | type | notes | ||
| -- |-- |-- | ||
| `date` | datetime | Date | ||
| `price` | decimal, Optional | Price of the most relevant OHLC candle element when a signal is present | ||
| `signal` | [Signal]({{site.baseurl}}/guide/#signal) | Generated signal type | ||
| `candle` | [CandleProperties]({{site.baseurl}}/guide/#candle) | Candle properties |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
title: Doji (Preview) | ||
permalink: /indicators/Doji/ | ||
layout: indicator | ||
type: candlestick-pattern | ||
--- | ||
|
||
# {{ page.title }} | ||
<hr> | ||
|
||
## **get_doji**(*quotes, max_price_change_percent=0.001*) | ||
|
||
## Parameters | ||
|
||
| name | type | notes | ||
| -- |-- |-- | ||
| `quotes` | Iterable[Quote] | Iterable(such as list or an object having `__iter__()`) of the Quote class or [its sub-class]({{site.baseurl}}/guide/#using-custom-quote-classes). | ||
| `max_price_change_percent` | float, *default 0.001* | Optional. Maximum absolute decimalized percent difference in open and close price. Must be between 0 and 0.005, if specified. | ||
|
||
### Historical quotes requirements | ||
|
||
You must have at least one historical quote; however, more is typically provided since this is a chartable candlestick pattern. | ||
|
||
`quotes` is an `Iterable[Quote]` collection of historical price quotes. It should have a consistent frequency (day, hour, minute, etc). See [the Guide]({{site.baseurl}}/guide/#historical-quotes) for more information. | ||
|
||
## Return | ||
|
||
```python | ||
CandleResults[CandleResult] | ||
``` | ||
|
||
- This method returns a time series of all available indicator values for the `quotes` provided. | ||
- `CandleResults` is just a list of `CandleResult`. | ||
- It always returns the same number of elements as there are in the historical quotes. | ||
- It does not return a single incremental indicator value. | ||
- The candlestick pattern is indicated on dates where `signal` is `Signal.NEUTRAL`. | ||
- `price` is `close` price; however, all OHLC elements are included in the `candle` properties. | ||
- There is no intrinsic basis or confirmation signal provided for this pattern. | ||
|
||
{% include candle-result.md %} | ||
|
||
### Utilities | ||
|
||
- [.condense()]({{site.baseurl}}/utilities#condense) | ||
- [.find(lookup_date)]({{site.baseurl}}/utilities#find-indicator-result-by-date) | ||
- [.remove_warmup_periods(qty)]({{site.baseurl}}/utilities#remove-warmup-periods) | ||
|
||
See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-results) for more information. | ||
|
||
## Example | ||
|
||
```python | ||
from stock_indicators import indicators | ||
|
||
# This method is NOT a part of the library. | ||
quotes = get_history_from_feed("SPY") | ||
|
||
# Calculate | ||
results = indicators.get_doji(quotes); | ||
``` | ||
|
||
## About: {{ page.title }} | ||
|
||
[Doji](https://en.wikipedia.org/wiki/Doji) is a single candlestick pattern where open and close price are virtually identical, representing market indecision. | ||
[[Discuss] :speech_balloon:]({{site.github.base_repository_url}}/discussions/734 "Community discussion about this indicator") | ||
|
||
![image]({{site.charturl}}/Doji.png) | ||
|
||
### Sources | ||
|
||
- [C# core]({{site.base_sourceurl}}/a-d/Doji/Doji.cs) | ||
- [Python wrapper]({{site.sourceurl}}/doji.py) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
title: Marubozu (Preview) | ||
permalink: /indicators/Marubozu/ | ||
layout: indicator | ||
type: candlestick-pattern | ||
--- | ||
|
||
# {{ page.title }} | ||
<hr> | ||
|
||
## **get_marubozu**(*quotes, min_body_percent=0.95*) | ||
|
||
## Parameters | ||
|
||
| name | type | notes | ||
| -- |-- |-- | ||
| `quotes` | Iterable[Quote] | Iterable(such as list or an object having `__iter__()`) of the Quote class or [its sub-class]({{site.baseurl}}/guide/#using-custom-quote-classes). | ||
| `min_body_percent` | float, *default 0.95* | Minimum body size as a decimalized percent of total candle size. Must be between 0.8 and 1, if specified. | ||
|
||
### Historical quotes requirements | ||
|
||
You must have at least one historical quote; however, more is typically provided since this is a chartable candlestick pattern. | ||
|
||
`quotes` is an `Iterable[Quote]` collection of historical price quotes. It should have a consistent frequency (day, hour, minute, etc). See [the Guide]({{site.baseurl}}/guide/#historical-quotes) for more information. | ||
|
||
## Return | ||
|
||
```csharp | ||
CandleResults[CandleResult] | ||
``` | ||
|
||
- This method returns a time series of all available indicator values for the `quotes` provided. | ||
- `CandleResults` is just a list of `CandleResult`. | ||
- It always returns the same number of elements as there are in the historical quotes. | ||
- It does not return a single incremental indicator value. | ||
- The candlestick pattern is indicated on dates where `signal` is `Signal.BULL_SIGNAL` or `Signal.BEAR_SIGNAL`. | ||
- `price` is `close` price; however, all OHLC elements are included in the `candle` properties. | ||
- There is no intrinsic basis or confirmation signal provided for this pattern. | ||
|
||
{% include candle-result.md %} | ||
|
||
### Utilities | ||
|
||
- [.condense()]({{site.baseurl}}/utilities#condense) | ||
- [.find(lookup_date)]({{site.baseurl}}/utilities#find-indicator-result-by-date) | ||
- [.remove_warmup_periods(qty)]({{site.baseurl}}/utilities#remove-warmup-periods) | ||
|
||
See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-results) for more information. | ||
|
||
## Example | ||
|
||
```python | ||
from stock_indicators import indicators | ||
|
||
# This method is NOT a part of the library. | ||
quotes = get_history_from_feed("SPY") | ||
|
||
# Calculate | ||
results = indicators.get_marubozu(quotes); | ||
``` | ||
|
||
## About: {{ page.title }} | ||
|
||
[Marubozu](https://en.wikipedia.org/wiki/Marubozu) is a single candlestick pattern that has no wicks, representing consistent directional movement. | ||
[[Discuss] :speech_balloon:]({{site.github.base_repository_url}}/discussions/512 "Community discussion about this indicator") | ||
|
||
![image]({{site.charturl}}/Marubozu.png) | ||
|
||
### Sources | ||
|
||
- [C# core]({{site.base_sourceurl}}/m-r/Marubozu/Marubozu.cs) | ||
- [Python wrapper]({{site.sourceurl}}/marubozu.py) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.