Reversing MACD

Modified on 2011/11/16 05:35 by Eugene — Categorized as: TASCIndicators

Syntax

public RevEngMACD(WealthLab.DataSeries ds, int period1, int period2, string description) public static RevEngMACD Series(WealthLab.DataSeries ds, int period1, int period2)

public RevEngMACD(WealthLab.DataSeries ds, int period1, int period2, double level, string description)


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)

Description

RevEngMACD by Johnny Dough from the January 2012 issue of Stocks & Commodities magazine. By default, the RevEngMACD indicator returns the price value required for the MACD to move to the zero value on the following bar. Passing on a target level in an overloaded call allows to figure out the price required for the MACD to the specified value (which can be different from zero).

Example

See TASC 2012-01, Reversing MACD (Dough)