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
ds | A DataSeries used to build MACD (e.g. Close) |
period1 | First MACD period |
period2 | Second MACD period |
level | The target level of the MACD to move to (optional) |
isSMA | Use 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)