Unisciti alla nostra fan page
- Visualizzazioni:
- 3954
- Valutazioni:
- Pubblicato:
- 2018.09.27 16:00
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
Investor Preference Index was discussed in the "Technical Analysis of Stocks & Commodities" magazine in December, 1997, page 19. The article was written by Cyril V. Smith Jr.
Initially, this indicator, which was used as the long-term stock market investment tool, compared the efficiency of S&P 500 with the New York Stock Exchange to measure sentiment. The theory suggests that investors prefer certain types of investment.
The indicator has five input parameters:
- Instrument - the name of the financial instrument
- ROC period - period for calculating the price rate of change
- Fast smoothing period - the period of the fast smoothing
- Slow smoothing period - the period of the slow smoothing
- Result smoothing period - the period of the resulting smoothing
Calculation:
IPI =100.0*(Result smoothing period * SMA(B2, Result smoothing period)+1.0)
where:
B2 = SMA(B1, Fast smoothing period) - SMA(B1, Slow smoothing period) B1 = ROC1 - ROC2
ROC1 - the current symbol's price rate of change over the ROC period ROC2 - the 'Instrument' symbol's price rate of change over the ROC period
ROC = 100.0 * Log(Close - Log2) / Log2
Log2 = Log(Close[ROC period])
Please note that in order for the indicator to display correctly, historical data for the 'Instrument' symbol are needed, which can lead to a delay in displaying the oscillator line during the first launch or symbol changed.
Fig. 1. Investor Preference Index GBPUSD relative to EURUSD
Fig. 2. Investor Preference Index GBPUSD relative to USDJPY
Fig. 3. Investor Preference Index GBPUSD relative to AUDCAD
Fig. 4. Investor Preference Index GBPUSD relative to USDRUB
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/21834
![CCI_Histogram_Vol](https://c.mql5.com/i/code/indicator.png)
The Commodity Channel Index oscillator displayed as a color histogram, using volumes.
![GD](https://c.mql5.com/i/code/indicator.png)
The Generalized DEMA moving average