mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-04 00:12:29 +00:00
* fix typo * fix typos * fix typo * fix typos * fix typos * fix typos * fix typo --------- Co-authored-by: Luqman <luqazino@gmail.com> Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
36 lines
849 B
Markdown
Vendored
36 lines
849 B
Markdown
Vendored
---
|
|
title: atr
|
|
description: The page provides details on how to calculate the Average True Range
|
|
using a specific stock ticker with the help of the Python package, OpenBB.
|
|
keywords:
|
|
- Average True Range
|
|
- stock ticker
|
|
- forecast
|
|
---
|
|
|
|
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
|
|
|
|
<HeadTitle title="forecast.atr - Reference | OpenBB SDK Docs" />
|
|
|
|
Calculate the Average True Range of a variable based on a specific stock ticker.
|
|
|
|
Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L349)]
|
|
|
|
```python
|
|
openbb.forecast.atr(dataset: pd.DataFrame, close_column: str = "close", high_column: str = "high", low_column: str = "low")
|
|
```
|
|
|
|
---
|
|
|
|
## Parameters
|
|
|
|
This function does not take any parameters.
|
|
|
|
---
|
|
|
|
## Returns
|
|
|
|
This function does not return anything
|
|
|
|
---
|