IIndicatorsiMACD Method

Returns calculated values for MACD indicator

Definition

Namespace: SharpTraderBot
Assembly: SharpTraderBot (in SharpTraderBot.dll) Version: 1.0.0
C#
List<double?> iMACD(
	int sessionIndex,
	string symbol,
	TimeFrame timeframe,
	PriceUsed price,
	MACDMode mode,
	int fastPeriods = 12,
	int slowPeriods = 26,
	int signalPeriods = 9
)

Parameters

sessionIndex  Int32
Index of session in used session list
symbol  String
Common symbol name
timeframe  TimeFrame
Chart timeframe
price  PriceUsed
Price used in calculations
mode  MACDMode
Result type
fastPeriods  Int32  (Optional)
Number of periods for the faster moving average
slowPeriods  Int32  (Optional)
Number of periods for the slower moving average
signalPeriods  Int32  (Optional)
Number of periods for the moving average of MACD

Return Value

ListNullableDouble
List of values

See Also