Login Form



Members

Please contact support
(top right button)
if you need any assistance,
including service cancellation,
technical issues,
help building scans
and new indicator requests.

Indicators - MACD, Moving Average Convergence/Divergence

Find more information on MACD on MrSwing.com

macd
====
Usage: macd(fast, slow)[-daysAgo] 12, 26

Returns the value of the MACD line.

Parameters:

fast - the period for the fast EMA (defaults to 12)

slow - the period for the slow EMA (defaults to 26)

daysAgo - by default the calculations are done using the date specified in the filter definition, but optionally another parameter can be added to move the starting date a number of  days relative to the specified date

 

macd_signal
====
Usage: macd_signal(fast, slow, signal)[-daysAgo] 12, 26, 9

Returns the value of the MACD signal line, which is a (usually) 9 period EMA of MACD line.

Parameters:

fast - the period for the fast EMA (defaults to 12)

slow - the period for the slow EMA (defaults to 26)

signal - the period for the signal EMA

daysAgo - by default the calculations are done using the date specified in the filter definition, but optionally another parameter can be added to move the starting date a number of  days relative to the specified date

 

macd_histogram
====
Usage: macd_histogram(fast, slow, signal)[-daysAgo] 12, 26, 9

Returns the value of the MACD histogram, which is the difference between MACD and signal.

Parameters:

fast - the period for the fast EMA (defaults to 12)

slow - the period for the slow EMA (defaults to 26)

signal - the period for the signal EMA

daysAgo - by default the calculations are done using the date specified in the filter definition, but optionally another parameter can be added to move the starting date a number of  days relative to the specified date