Click or drag to resize
C2TALibMACD Method (SeriesDateTime, Decimal, Int32, Int32, Int32)
MACD

Namespace:  C2ExplorerServiceStack.Logic.Implementation
Assembly:  C2ExplorerServiceStack.Logic (in C2ExplorerServiceStack.Logic.dll) Version: 1.0
Syntax
C#
public static Tuple<Series<DateTime, decimal>, Series<DateTime, decimal>, Series<DateTime, decimal>> MACD(
	Series<DateTime, decimal> data,
	int optInFastPeriod = 12,
	int optInSlowPeriod = 26,
	int optInSignalPeriod = 9
)

Parameters

data
Type: DeedleSeriesDateTime, Decimal
Input time series.
optInFastPeriod (Optional)
Type: SystemInt32
The fast period.
optInSlowPeriod (Optional)
Type: SystemInt32
The slow period.
optInSignalPeriod (Optional)
Type: SystemInt32
The signal period.

Return Value

Type: TupleSeriesDateTime, Decimal, SeriesDateTime, Decimal, SeriesDateTime, Decimal
MACD, Signal and Histogram time series.
See Also