Syntax
public sMACD(DataSeries ds, int period1, int period2, string description): base(ds, description)
public static sMACD Series ( DataSeries ds, int period1, int period2 )
Parameter Description
ds | A DataSeries used to build MACD (e.g. Close) |
period1 | First MACD period (shorter) |
period2 | Second MACD period (longer) |
Description
sMACD indicator from Johnny Dough's article in November 2013 issue of
Stocks & Commodities magazine. The formula for the MACD indicator is sometimes calculated using simple moving averages instead of exponential moving averages. Used to build
RevEngMACDSignal based on SMA.
Example
See
TASC 2013-11, Reversing MACD: The Sequel (Dough)