Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,967
Thanks: 93 times Was thanked: 156 time(s) in 151 post(s)
|
Jay Kaeppel’s article, “The JK HiLo Index” explains how to
calculate the named index.
- Tools menu, select New to open the Indicator Editor
for a new indicator.
-
NNH:=Security("C:\MetaStock Data\BM
Data\X.NASD-H",C);
NNL:=Security("C:\MetaStock Data\BM
Data\X.NASD-L",C);
ti:= Security("C:\MetaStock Data\BM
Data\X.NASD-T",C);
r1:= Mov((Min(NNH,NNL)/ti) * 100, 10, S);
factor:= If(r1>=2.15 OR r1<=0.40, r1, 1);
r2:= Mov(NNH/ti, 10, S);
(factor * r2) * 100
5. Click
The formula list above is using the broad market data
installed with MetaStock for Windows.
If you wish to use a different data vendor or a different
market, you will need to change the first three lines. They
also reference an exact ticker symbol in that folder.
Just change the path and ticker symbol information to point to the data
you are using.
Some data sources may not have a symbol for Total Issues
Traded. It requires adding one more
Security() function call and changing the definition of the ti variable. Our users of MetaStock
Professional will want to use this version:
ADI:=Security("C:\MetaStock Data\BM
Data\us&ADVQ",C);
DCI:=Security("C:\MetaStock Data\BM
Data\us&DECQ",C);
NNH:=Security("C:\MetaStock Data\BM
Data\us&YHIQ",C);
NNL:=Security("C:\MetaStock Data\BM
Data\us&YLOQ",C);
ti:= ADI+DCI;
r1:= Mov((Min(NNH,NNL)/ti) * 100, 10, S);
factor:= If(r1>=2.15 OR r1<=0.40, r1, 1);
r2:= Mov(NNH/ti, 10, S);
(factor * r2) * 100
|