mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-03 16:02:04 +00:00
* add first iteration of content for Terminal Pro * Update index.md * Update dashboards.md * Update folders.md * Update grouping.md * Update report.md * Update templates.md * Update quick-start.md * Update index.md * Update index.md * Update home.md * Update news.md * Update index.md * Update index.md * Update index.md * Update data-provider.md * Update chat-with-widget.md * Update data-manipulation.md * Update forecasting.md * fix: images self closing tags * fix: only pro visitors can see pro * inter font * improve SEO content and restructuring * add new package for toggle on tutorials * move folder around * improve main page of each prod * small updates and improvements * fix logo above * small improvement in headtitle for portfolio funcs * fix typos from OpenAI's GPT-4 * fix _category_ json * remove generic SEO words * add script that generates SEO for documentation * add missing file * remove sdk warning message * fix links for andrew --------- Co-authored-by: jose-donato <zmcdonato@gmail.com> Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com> Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
109 lines
10 KiB
Markdown
Vendored
109 lines
10 KiB
Markdown
Vendored
---
|
|
title: sto
|
|
description: Details on the usage, parameters, and examples of the 'sto' command in
|
|
adding the Stochastic Oscillator %K and %D. 'sto' can help users understand and
|
|
interpret the predictive model through stochastic oscillation analysis.
|
|
keywords:
|
|
- Stochastic Oscillator
|
|
- sto command
|
|
- Predictive Model Analysis
|
|
- Technical Indicator
|
|
---
|
|
|
|
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
|
|
|
|
<HeadTitle title="forecast /sto - Reference | OpenBB Terminal Docs" />
|
|
|
|
Add in Stochastic Oscillator %K and %D
|
|
|
|
### Usage
|
|
|
|
```python
|
|
sto [--close-col CLOSE_COL] [--high-col HIGH_COL] [--low-col LOW_COL] [-d {}] [--period PERIOD]
|
|
```
|
|
|
|
---
|
|
|
|
## Parameters
|
|
|
|
| Name | Description | Default | Optional | Choices |
|
|
| ---- | ----------- | ------- | -------- | ------- |
|
|
| close_col | Close column name to use for Stochastic Oscillator | close | True | None |
|
|
| high_col | High column name to use for Stochastic Oscillator | high | True | None |
|
|
| low_col | Low column name to use for Stochastic Oscillator | low | True | None |
|
|
| target_dataset | The name of the dataset you want to select | None | True | None |
|
|
| period | The period to use | 10 | True | None |
|
|
|
|
|
|
---
|
|
|
|
## Examples
|
|
|
|
```python
|
|
(🦋) /forecast/ $ load TSLA.csv
|
|
|
|
(🦋) /forecast/ $ show TSLA
|
|
TSLA dataset has shape (row, column): (611, 7)
|
|
|
|
Dataset TSLA | Showing 10 of 611 rows
|
|
┏━━━┳━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┓
|
|
┃ ┃ date ┃ open ┃ high ┃ low ┃ close ┃ adj_close ┃ volume ┃
|
|
┡━━━╇━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━┩
|
|
│ 0 │ 2020-01-02 │ 84.90 │ 86.14 │ 84.34 │ 86.05 │ 86.05 │ 47660500 │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┤
|
|
│ 1 │ 2020-01-03 │ 88.10 │ 90.80 │ 87.38 │ 88.60 │ 88.60 │ 88892500 │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┤
|
|
│ 2 │ 2020-01-06 │ 88.09 │ 90.31 │ 88.00 │ 90.31 │ 90.31 │ 50665000 │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┤
|
|
│ 3 │ 2020-01-07 │ 92.28 │ 94.33 │ 90.67 │ 93.81 │ 93.81 │ 89410500 │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┤
|
|
│ 4 │ 2020-01-08 │ 94.74 │ 99.70 │ 93.65 │ 98.43 │ 98.43 │ 155721500 │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┤
|
|
│ 5 │ 2020-01-09 │ 99.42 │ 99.76 │ 94.57 │ 96.27 │ 96.27 │ 142202000 │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┤
|
|
│ 6 │ 2020-01-10 │ 96.36 │ 96.99 │ 94.74 │ 95.63 │ 95.63 │ 64797500 │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┤
|
|
│ 7 │ 2020-01-13 │ 98.70 │ 105.13 │ 98.40 │ 104.97 │ 104.97 │ 132588000 │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┤
|
|
│ 8 │ 2020-01-14 │ 108.85 │ 109.48 │ 104.98 │ 107.58 │ 107.58 │ 144981000 │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┤
|
|
│ 9 │ 2020-01-15 │ 105.95 │ 107.57 │ 103.36 │ 103.70 │ 103.70 │ 86844000 │
|
|
└───┴────────────┴────────┴────────┴────────┴────────┴───────────┴───────────┘
|
|
|
|
(🦋) /forecast/ $ sto TSLA
|
|
Successfully added 'STOK&D_10' to 'TSLA' dataset
|
|
|
|
(🦋) /forecast/ $ show TSLA
|
|
TSLA dataset has shape (row, column): (611, 9)
|
|
|
|
Dataset TSLA | Showing 10 of 611 rows
|
|
┏━━━┳━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┓
|
|
┃ ┃ date ┃ open ┃ high ┃ low ┃ close ┃ adj_close ┃ volume ┃ SO%K_10 ┃ SO%D_10 ┃
|
|
┡━━━╇━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━┩
|
|
│ 0 │ 2020-01-02 │ 84.90 │ 86.14 │ 84.34 │ 86.05 │ 86.05 │ 47660500 │ nan │ nan │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┼─────────┼─────────┤
|
|
│ 1 │ 2020-01-03 │ 88.10 │ 90.80 │ 87.38 │ 88.60 │ 88.60 │ 88892500 │ nan │ nan │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┼─────────┼─────────┤
|
|
│ 2 │ 2020-01-06 │ 88.09 │ 90.31 │ 88.00 │ 90.31 │ 90.31 │ 50665000 │ nan │ nan │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┼─────────┼─────────┤
|
|
│ 3 │ 2020-01-07 │ 92.28 │ 94.33 │ 90.67 │ 93.81 │ 93.81 │ 89410500 │ nan │ nan │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┼─────────┼─────────┤
|
|
│ 4 │ 2020-01-08 │ 94.74 │ 99.70 │ 93.65 │ 98.43 │ 98.43 │ 155721500 │ nan │ nan │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┼─────────┼─────────┤
|
|
│ 5 │ 2020-01-09 │ 99.42 │ 99.76 │ 94.57 │ 96.27 │ 96.27 │ 142202000 │ nan │ nan │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┼─────────┼─────────┤
|
|
│ 6 │ 2020-01-10 │ 96.36 │ 96.99 │ 94.74 │ 95.63 │ 95.63 │ 64797500 │ nan │ nan │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┼─────────┼─────────┤
|
|
│ 7 │ 2020-01-13 │ 98.70 │ 105.13 │ 98.40 │ 104.97 │ 104.97 │ 132588000 │ nan │ nan │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┼─────────┼─────────┤
|
|
│ 8 │ 2020-01-14 │ 108.85 │ 109.48 │ 104.98 │ 107.58 │ 107.58 │ 144981000 │ nan │ nan │
|
|
├───┼────────────┼────────┼────────┼────────┼────────┼───────────┼───────────┼─────────┼─────────┤
|
|
│ 9 │ 2020-01-15 │ 105.95 │ 107.57 │ 103.36 │ 103.70 │ 103.70 │ 86844000 │ 77.00 │ nan │
|
|
└───┴────────────┴────────┴────────┴────────┴────────┴───────────┴───────────┴─────────┴─────────┘
|
|
|
|
(🦋) /forecast/ $ clean TSLA
|
|
Namespace(drop='', fill='', help=False, limit=5, target_dataset='TSLA')
|
|
Successfully cleaned 'TSLA' dataset
|
|
```
|
|
---
|