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, May 21, 2005 12:47:49 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)
You will need the Power Pivots Plus Add-on for this Expert to work. This is designed for a daily chart Highlights Long A1:= ExtFml("PowerPivots.TrendDirection",1,1); A2:= ExtFml("PowerPivots.TrendDirection",1,2); TD:=If(A1=1,1,If(A1=-1,-1,0))+If(A2=1,2,If(A2=-1,-2,0)); htfData:=ExtFml("PowerPivots.TDataCreate",3,2); x:=Mov(htfData,10,S); MA:=ExtFml("PowerPivots.TDataLocalize",x,2,0); LE:=C>MA AND TD>0; SE:=C<MA AND TD<0; LX:=C<MA; SX:=C>MA; B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B>0 Short A1:= ExtFml("PowerPivots.TrendDirection",1,1); A2:= ExtFml("PowerPivots.TrendDirection",1,2); TD:=If(A1=1,1,If(A1=-1,-1,0))+If(A2=1,2,If(A2=-1,-2,0)); htfData:=ExtFml("PowerPivots.TDataCreate",3,2); x:=Mov(htfData,10,S); MA:=ExtFml("PowerPivots.TDataLocalize",x,2,0); LE:=C>MA AND TD>0; SE:=C<MA AND TD<0; LX:=C<MA; SX:=C>MA; B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B<0 Out A1:= ExtFml("PowerPivots.TrendDirection",1,1); A2:= ExtFml("PowerPivots.TrendDirection",1,2); TD:=If(A1=1,1,If(A1=-1,-1,0))+If(A2=1,2,If(A2=-1,-2,0)); htfData:=ExtFml("PowerPivots.TDataCreate",3,2); x:=Mov(htfData,10,S); MA:=ExtFml("PowerPivots.TDataLocalize",x,2,0); LE:=C>MA AND TD>0; SE:=C<MA AND TD<0; LX:=C<MA; SX:=C>MA; B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B=0 Symbols Long Entry A1:= ExtFml("PowerPivots.TrendDirection",1,1); A2:= ExtFml("PowerPivots.TrendDirection",1,2); TD:=If(A1=1,1,If(A1=-1,-1,0))+If(A2=1,2,If(A2=-1,-2,0)); htfData:=ExtFml("PowerPivots.TDataCreate",3,2); x:=Mov(htfData,10,S); MA:=ExtFml("PowerPivots.TDataLocalize",x,2,0); LE:=C>MA AND TD>0; SE:=C<MA AND TD<0; LX:=C<MA; SX:=C>MA; B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B>0 AND Ref(B,-1)<=0 Short entry A1:= ExtFml("PowerPivots.TrendDirection",1,1); A2:= ExtFml("PowerPivots.TrendDirection",1,2); TD:=If(A1=1,1,If(A1=-1,-1,0))+If(A2=1,2,If(A2=-1,-2,0)); htfData:=ExtFml("PowerPivots.TDataCreate",3,2); x:=Mov(htfData,10,S); MA:=ExtFml("PowerPivots.TDataLocalize",x,2,0); LE:=C>MA AND TD>0; SE:=C<MA AND TD<0; LX:=C<MA; SX:=C>MA; B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B<0 AND Ref(B,-1)>=0 Long Exit A1:= ExtFml("PowerPivots.TrendDirection",1,1); A2:= ExtFml("PowerPivots.TrendDirection",1,2); TD:=If(A1=1,1,If(A1=-1,-1,0))+If(A2=1,2,If(A2=-1,-2,0)); htfData:=ExtFml("PowerPivots.TDataCreate",3,2); x:=Mov(htfData,10,S); MA:=ExtFml("PowerPivots.TDataLocalize",x,2,0); LE:=C>MA AND TD>0; SE:=C<MA AND TD<0; LX:=C<MA; SX:=C>MA; B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B=0 AND Ref(B,-1)>0 Short exit A1:= ExtFml("PowerPivots.TrendDirection",1,1); A2:= ExtFml("PowerPivots.TrendDirection",1,2); TD:=If(A1=1,1,If(A1=-1,-1,0))+If(A2=1,2,If(A2=-1,-2,0)); htfData:=ExtFml("PowerPivots.TDataCreate",3,2); x:=Mov(htfData,10,S); MA:=ExtFml("PowerPivots.TDataLocalize",x,2,0); LE:=C>MA AND TD>0; SE:=C<MA AND TD<0; LX:=C<MA; SX:=C>MA; B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!"); B=0 AND Ref(B,-1)<0
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.