This indicator was discussed in the December 1997 Technical Analysis
of Stocks & Commodities magazine, page 19. The article was writtenby Cyril V. Smith Jr. "This indicator, a long - term stock market investment tool, compares the performance of the S&P 500 to the New York Stock Exchange index to measure sentiment.
The theory is that investors have a preference for certain types of investments, blue chips versus mid-cap, during phases of a bull market."
To plot this in MetaStock for Windows, follow these instructions.
When complete, if you save this as a chart, you will simply need to load the chart and it will recalculate using the newest data.
Open a chart of the S&P 500.
Open a chart of the New York Stock Exchange index.
Drag the S&P 500 price plot into the NYSE chart.
Drop the indicator listed below on the plot of the S&P 500. The plot will turn a different color when you are pointing at it.
The resultant plot is the Investor Preference Index.
Formula:
Investor Preference Index
(Sum(
Mov(ROC(Log(C),24,%) - ROC(Log(P),24,%),15,S) -
Mov(ROC(Log(C),24,%) - ROC(Log(P),24,%),38,S),54)+1)*100
MetaStock'u 7.0 możesz skorzystać z funkcji Security("XX",YY) gdzie XX to symbol spółki, a YY to jedna z wartości - O, H, L, C, V, OI . Dane o liczbie spółek wzrostowych są w tym przypadku zapisane w kolumnach O, H, L, C a ich wolumen w kolumnie V - jako jeden walor.
Dla przykładu:
Nazwa - ";Spółki wzrostowe",
Symbol - "X.NYSE.A" (gdzie A=Advance),
Kolumny O=H=L=C - liczba spółek, które wzrosły,
V - wolumen dla tych spółek.
Podobnie jest ze spółkami spadkowymi. Dla nowych rocznych maksimów i minimów odpowiednie dane powinny przyjąć następującą postać:
Nazwa - "New High (52)"
Symbol - "X.NYSE.H" (gdzie H=High(New))
Kolumny O=H=L=C - liczba spółek, które mają nowe roczne szczyty.
I analogicznie dla "New Lows (52)".
I tak Security("X.NYSE.A",V) wpisane w polu formuł modułu "Indicator Builder" zwróci jako wskaźnik wolumen spółek, które na danej sesji wzrosły.
Przy użyciu tej funkcji formuła powyższego wskaźnika wygląda następująco: