Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
Here is an indicator that shows when the market is bullish or bearish
You have to have the nyse and nasd and amex new high's and new lows in the following directories
NH:=Security("c:\\Metastock Data\\BM Data\\X.NYSE-H",C);
NL:=Security("c:\\Metastock Data\\BM Data\\X.NYSE-L",C);
A3:=Mov(NH,10,S)/(NH+NL);
B3:=Mov(NL,10,S)/(NH+NL);
NH:=Security("c:\\Metastock Data\\BM Data\\X.NASD-H",C);
NL:=Security("c:\\Metastock Data\\BM Data\\X.NASD-L",C);
A2:=Mov(NH,10,S)/(NH+NL);
B2:=Mov(NL,10,S)/(NH+NL);
NH:=Security("c:\\Metastock Data\\BM Data\\X.AMEX-H",C);
NL:=Security("c:\\Metastock Data\\BM Data\\X.AMEX-L",C);
A1:=Mov(NH,10,S)/(NH+NL);
B1:=Mov(NL,10,S)/(NH+NL);
NY:=If(A3>B3,-3,If(A3<B3,3,0));
NA:=If(A2>B2,-2,If(A2<B2,2,0));
AM:=If(A1>B1,-1,If(A1<B1,1,0));
NY;NA;AM;
if the indicator plots +3 then the NYSE is Bearish, -3 the NYSE is bullish
if the indicator plots +2 then the NASD is Bearish, -2 the NASD is bullish
if the indicator plots +1 then the AMEX is Bearish, -1 the AMEX is bullish
This indicator plots 3 lines, it is meant to keep you on the right side of the market.
establish long positions when the market is bullish and establish short positions when the market is bearish
|