logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
henry1224  
#1 Posted : Saturday, April 16, 2005 1:51:25 AM(UTC)
henry1224

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)
This Expert requires the PowerPivot Plus Add-on to work. It needs to have the NYSE new highs and NYSE new lows to be in the proper data locations Highlghts Long NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B>0 Short NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B<0 Out NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B=0 Symbols Long entry NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B>0 AND Ref(B,-1)<=0 Short entry NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B<0 AND Ref(B,-1)>=0 Long Exit NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B=0 AND Ref(B,-1)>0 Short Exit NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B=0 AND Ref(B,-1)<0
henry1224  
#2 Posted : Sunday, July 31, 2005 10:39:09 PM(UTC)
henry1224

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)
Highlights LONG : NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX); B = 1 SHORT : NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2);B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX); B = -1 out : NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX); B = 0 Symbols tab ENTER LONG : NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX); B = 1 AND Ref(B,-1) <> 1 ENTER SHORT : NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX); B = -1 AND Ref(B,-1) <> -1 EXIT LONG : NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX); B = 0 AND Ref(B,-1) = 1 EXIT SHORT : NH:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-H",C); NL:=Security("c:\\Metastock Data\\indices & indicators\\market indicators\\X.NYSE-L",C); B1:=Mov(NH,10,S)/(NH+NL); B2:=Mov(NL,10,S)/(NH+NL); G:=If(B1>=B2,1,0); A1:=Mov(C,3,S); A2:=Mov(C,10,S); A3:=Mov(C,30,S); LE:=A2>A3 AND G=1 AND Cross(A1,A2); LX:=Cross(A3,A2) OR Cross(A2,A1); SE:=A2<A3 AND G=0 AND Cross(A2,A1); SX:=Cross(A2,A3) OR Cross(A1,A2); B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX); B = 0 AND Ref(B,-1) = -1
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.