MACD Line Global
- Indikatoren
- Igor Semyonov
- Version: 1.23
- Aktualisiert: 18 Juli 2024
- Aktivierungen: 7
Description
A colored universal indicator MACD Line (MA convergence-divergence indicator, shown as a histogram). The rising and falling of the indicator histogram can be colored.
The indicator can be calculated as the standard one on the basis of a price or as a derivative on the basis of the following twelve other indicators included in the standard package of the MetaTrader 4 terminal:
- AD - an indicator of accumulation and distribution of volume.
- OBV - On Balance Volume.
- Volume - tick volume indicator.
- Force - Force Index indicator.
- MFI - Money Flow Index.
- ATR - Average True Range.
- Momentum.
- RSI - Relative Strength Index.
- Moving Average.
- CCI - Commodity Channel Index.
- ADX - Average Directional Movement indicator.
- DeMarker.
- Standard Deviation.
Price is used by default.
Purpose
The indicator can be used for manual or automated trading in an Expert Advisor. Values of indicator buffer of the double type can be used for automated trading:
- The main line of the indicator - buffer 4.
- The signal line of the indicator - buffer 2.
- The bullish line of the indicator - buffer 0, must not be equal to 0.
- The bearish line of the indicator - buffer 1, must not be equal to zero.
Inputs
- Calc_Method - the index of the indicator, based on which the MACD will be calculated (from 0 to 12). By default, i.e. more than 12 - the standard one based on prices.
- Periods - the period for calculating the basic indicator, based on which MACD will be calculated.
- FastMA - the period of the fast moving average.
- SlowMA - the period of the slow moving average.
- SignalMA - the period of the signal line.
- MA_Method - averaging method for the MA of the basic and/or calculated indicator:
- MODE_SMA - 0.
- MODE_EMA - 1.
- MODE_SMMA - 2.
- MODE_LWMA - 3.
- 7. Signal_Method - The averaging method of the signal line:
- MODE_SMA - 0.
- MODE_EMA - 1.
- MODE_SMMA - 2.
- MODE_LWMA - 3.
- 8. Applied_Price - the used price of the basic indicator:
- PRICE_CLOSE - 0.
- PRICE_OPEN - 1.
- PRICE_HIGH - 2.
- PRICE_LOW - 3.
- PRICE_MEDIAN - 4.
- PRICE_TYPICAL - 5.
- PRICE_WEIGHTED - 6.
- Mode - the index of the line (MAIN - 0 or SIGNAL - 1) of the basic indicator, based on which the MACD will be calculated.
- Shift - the sift o the basic indicator relative to the price chart.