Syntax
public RelativeDailyMACD(DataSeries ds, int DailyLength1, int DailyLength2, int WeeklyLength1, int WeeklyLength2, string description)
public static RelativeDailyMACD Series(DataSeries ds, int DailyLength1, int DailyLength2, int WeeklyLength1, int WeeklyLength2)
public WeeklyMACD(DataSeries ds, int WeeklyLength1, int WeeklyLength2, string description)
public static WeeklyMACD Series(DataSeries ds, int WeeklyLength1, int WeeklyLength2)
Parameter Description
ds | DataSeries e.g. Close |
DailyLength1 | First moving average period (daily MACD) |
DailyLength2 | Second moving average period (daily MACD) |
WeeklyLength1 | First moving average period (weekly MACD) |
WeeklyLength2 | Second moving average period (weekly MACD) |
Description
Created by Vitali Apirine, the weekly & daily MACD (W&D MACD) combines the two MACD oscillators (weekly and daily) on a daily chart.
Example
Please refer to
December 2017 Traders' Tip article's code in Stocks and Commodities Magazine.