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>
43 lines
1.8 KiB
Markdown
Vendored
43 lines
1.8 KiB
Markdown
Vendored
---
|
|
title: macd
|
|
description: This page explains the Moving Average Convergence Divergence (MACD),
|
|
a tool used in technical analysis to signal trend changes. By explaining the behaviour
|
|
of MACD under various conditions, understanding its usage, and highlighting its
|
|
parameters, it assists in generating buy and sell signals.
|
|
keywords:
|
|
- MACD
|
|
- Moving Average Convergence Divergence
|
|
- Exponential Moving Averages
|
|
- Trend changes
|
|
- Buy signal
|
|
- Sell signal
|
|
- Overbought conditions
|
|
- Oversold conditions
|
|
---
|
|
|
|
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
|
|
|
|
<HeadTitle title="stocks/ta/macd - Reference | OpenBB Terminal Docs" />
|
|
|
|
The Moving Average Convergence Divergence (MACD) is the difference between two Exponential Moving Averages. The Signal line is an Exponential Moving Average of the MACD. The MACD signals trend changes and indicates the start of new trend direction. High values indicate overbought conditions, low values indicate oversold conditions. Divergence with the price indicates an end to the current trend, especially if the MACD is at extreme high or low values. When the MACD line crosses above the signal line a buy signal is generated. When the MACD crosses below the signal line a sell signal is generated. To confirm the signal, the MACD should be above zero for a buy, and below zero for a sell.
|
|
|
|
### Usage
|
|
|
|
```python
|
|
macd [--fast N_FAST] [--slow N_SLOW] [--signal N_SIGNAL]
|
|
```
|
|
|
|
---
|
|
|
|
## Parameters
|
|
|
|
| Name | Description | Default | Optional | Choices |
|
|
| ---- | ----------- | ------- | -------- | ------- |
|
|
| n_fast | The short period. | 12 | True | None |
|
|
| n_slow | The long period. | 26 | True | None |
|
|
| n_signal | The signal period. | 9 | True | None |
|
|
|
|

|
|
|
|
---
|