MACDTwoLines

Description

The MACD (2-lines) study shows the relationship between the fast and the slow moving averages (MACD) with a moving average line of MACD itself (the "signal" or "trigger") plotted on top to show buy/sell opportunities.

Input Parameters

Parameter Description
fast length The number of bars used to calculate the fast moving average.
slow length The number of bars used to calculate the slow moving average.
macd length The number of bars used to calculate the moving average of MACD.
average type The type of moving average to be used in calculations: simple, exponential, weighted, Wilder's, or Hull.

Plots

Plot Description
Value The value of MACD.
Avg The moving average of MACD.
ZeroLine Zero level.

Example*

*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.