分类
到底怎麼用期權策略賺錢

MACD指标与移动平均线混合利用

Documentation

[macdvec, nineperma] = macd(data) calculates the Moving Average Convergence/Divergence (MACD) line, macdvec , MACD指标与移动平均线混合利用 from the data matrix, data, and the nine-period exponential moving average, nineperma , from the MACD line.

When the two lines are plotted, they can give you an indication of whether to buy or sell a stock, when an overbought or oversold condition is occurring, and when the end of MACD指标与移动平均线混合利用 a trend might occur.

The MACD is calculated by subtracting the 26-period (7.5%) exponential moving average from the 12-period (15%) moving average. The 9-day (20%) exponential moving average of the MACD line is used as the signal line. For example, when the MACD and the 20% moving average line have just crossed and the MACD line falls below the other line, it is time to sell.

[macdvec, nineperma] = macd(data, dim) lets you specify the orientation direction for the input. If the input data is a matrix, you must indicate whether each row is a set of observations ( dim = 2 ) or each column is a set of observations ( dim = 1 , the default).

macdts = macd(tsobj, series_name) calculates the MACD line from MACD指标与移动平均线混合利用 the financial time series tsobj , and the MACD指标与移动平均线混合利用 nine-period exponential moving average from the MACD line. The MACD is calculated for the closing price series in tsobj , presumed to have been named Close . The result is stored in the financial time series object MACD指标与移动平均线混合利用 macdts . The macdts object has the same dates as the input object tsobj and contains only two series, named MACDLine and NinePerMA . The first series contains the values representing the MACD line and the second MACD指标与移动平均线混合利用 is the nine-period exponential moving average of the MACD line.

Simple Sidebar

The starting state of the menu will appear collapsed on MACD指标与移动平均线混合利用 smaller screens, and will appear non-collapsed on MACD指标与移动平均线混合利用 larger screens. When toggled using the button below, the menu will change.

Make sure to keep all page content within the #page-content-wrapper . The top navbar is optional, and just for demonstration. Just create an element with the #sidebarToggle ID which will toggle the menu when clicked.

MACD指标与移动平均线混合利用

Moving Average Convergence/Divergence (MACD)

Syntax

Arguments

Dimension. Default = 1 (column orientation).

Financial time series object

Data series name

Description

[macdvec, nineperma] = macd(data) calculates the Moving Average Convergence/Divergence (MACD) line, macdvec, from the data matrix, data, as well as the nine-period exponential moving average, nineperma, from the MACD line.

When the two lines are plotted, MACD指标与移动平均线混合利用 they can give you an indication of MACD指标与移动平均线混合利用 whether to buy or sell a stock, when an overbought or oversold condition is MACD指标与移动平均线混合利用 occurring, and when the end of a trend might occur.

The MACD is calculated by subtracting the 26-period (7.5%) exponential moving average from the 12-period (15%) moving average. The 9-day (20%) exponential moving average of the MACD line is used as the signal line. For example, when the MACD and the 20% moving average line have just crossed and the MACD line MACD指标与移动平均线混合利用 falls below the other line, it is time to sell.

[macdvec, nineperma] = macd(data, dim) lets you specify the orientation direction for the input. If the input data is a matrix, you need to indicate whether each row is a set of observations (dim = 2) or each column is a set of observations (dim = 1, the default).

macdts = macd(tsobj, series_name) calculates the MACD line from the financial time series tsobj, as well as the nine-period exponential moving average from the MACD line. The MACD is calculated for the closing price series in tsobj, presumed to have been named Close. The result is stored in the financial time series object macdts. The macdts object has the same dates as the input object tsobj and contains only two series, named MACDLine and NinePerMA. The first series contains the values representing the MACD line and the second is the nine-period exponential moving average of the MACD line.

Simple Sidebar

The starting state of the menu MACD指标与移动平均线混合利用 will appear collapsed on smaller screens, and will appear non-collapsed on larger screens. When toggled using the button below, the menu will change.

Make sure to keep all page content within the #page-content-wrapper . The top MACD指标与移动平均线混合利用 navbar is optional, and just for demonstration. Just create an element with the #sidebarToggle ID which will toggle the menu when clicked.