Weekly & Daily MACD

Modified on 2017/10/31 10:12 by Eugene — Categorized as: TASCIndicators

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

dsDataSeries e.g. Close
DailyLength1First moving average period (daily MACD)
DailyLength2Second moving average period (daily MACD)
WeeklyLength1First moving average period (weekly MACD)
WeeklyLength2Second 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.