Type of price to use (Open, High, Low, Close, etc.)
mode
MacdMode
Which MACD value to return (Main, Signal)
index
number
Index of the bar to calculate MACD for
Return Value
Returns a number representing the requested MACD value.
Description
The iMACD method calculates the Moving Average Convergence/Divergence (MACD) indicator, which shows the relationship between two moving averages of an asset's price.
Available Price Types can be found in the TPriceType section.