RevEngMACDSignal

Modified on 2014/02/27 10:25 by Eugene — Categorized as: TASCIndicators

Syntax

public RevEngMACDSignal(DataSeries ds, int period1, int period2, bool isSMA, string description)
public RevEngMACDSignal(DataSeries ds, int period1, int period2, double level, bool isSMA, string description)
public RevEngMACDSignal(DataSeries ds, int period1, int period2, int period3, bool isSMA, string description)

public static RevEngMACDSignal Series(DataSeries ds, int period1, int period2, int period3, bool isSMA)

Parameter Description

dsA DataSeries used to build MACD (e.g. Close)
period1First MACD period
period2Second MACD period
levelThe target level of the MACD to move to (optional)
isSMAUse simple moving average to build instead of traditional exponential MA (optional)

Description

RevEngMACDSignal by Johnny Dough from the November 2013 issue of Stocks & Commodities magazine. By default, the RevEngMACDSignal indicator returns the price value required for the MACD line to cross its signal line on the following bar. Passing on a target level in an overloaded call allows to figure out the price required for the MACD signal to the specified value.

Example

See TASC 2013-11, Reversing MACD: The Sequel (Dough)