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 PowerPivots Plus Add-on for this expert
Highlights
Long
Fama:= ExtFml("MAMA.FAMA", (H+L)/2, 0.5, 0.05);
Mama:= ExtFml("MAMA.MAMA", (H+L)/2, 0.5, 0.05);
TD:=ExtFml("PowerPivots.TrendDirection",1,2);
LE:=Cross(Mama,Fama) and TD=1;
SE:=Cross(Fama,Mama) and TD=-1;
LX:=Cross(Fama,Mama) and TD>=0;
SX:=Cross(Mama,Fama) and TD<=0;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B>0
Short
Fama:= ExtFml("MAMA.FAMA", (H+L)/2, 0.5, 0.05);
Mama:= ExtFml("MAMA.MAMA", (H+L)/2, 0.5, 0.05);
TD:=ExtFml("PowerPivots.TrendDirection",1,2);
LE:=Cross(Mama,Fama) and TD=1;
SE:=Cross(Fama,Mama) and TD=-1;
LX:=Cross(Fama,Mama) and TD>=0;
SX:=Cross(Mama,Fama) and TD<=0;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B<0
Out
Fama:= ExtFml("MAMA.FAMA", (H+L)/2, 0.5, 0.05);
Mama:= ExtFml("MAMA.MAMA", (H+L)/2, 0.5, 0.05);
TD:=ExtFml("PowerPivots.TrendDirection",1,2);
LE:=Cross(Mama,Fama) and TD=1;
SE:=Cross(Fama,Mama) and TD=-1;
LX:=Cross(Fama,Mama) and TD>=0;
SX:=Cross(Mama,Fama) and TD<=0;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B=0
Symbols
Long entry
Fama:= ExtFml("MAMA.FAMA", (H+L)/2, 0.5, 0.05);
Mama:= ExtFml("MAMA.MAMA", (H+L)/2, 0.5, 0.05);
TD:=ExtFml("PowerPivots.TrendDirection",1,2);
LE:=Cross(Mama,Fama) and TD=1;
SE:=Cross(Fama,Mama) and TD=-1;
LX:=Cross(Fama,Mama) and TD>=0;
SX:=Cross(Mama,Fama) and TD<=0;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B>0 AND Ref(B,-1)<=0
Short entry
Fama:= ExtFml("MAMA.FAMA", (H+L)/2, 0.5, 0.05);
Mama:= ExtFml("MAMA.MAMA", (H+L)/2, 0.5, 0.05);
TD:=ExtFml("PowerPivots.TrendDirection",1,2);
LE:=Cross(Mama,Fama) and TD=1;
SE:=Cross(Fama,Mama) and TD=-1;
LX:=Cross(Fama,Mama) and TD>=0;
SX:=Cross(Mama,Fama) and TD<=0;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B<0 AND Ref(B,-1)>=0
Long Exit
Fama:= ExtFml("MAMA.FAMA", (H+L)/2, 0.5, 0.05);
Mama:= ExtFml("MAMA.MAMA", (H+L)/2, 0.5, 0.05);
TD:=ExtFml("PowerPivots.TrendDirection",1,2);
LE:=Cross(Mama,Fama) and TD=1;
SE:=Cross(Fama,Mama) and TD=-1;
LX:=Cross(Fama,Mama) and TD>=0;
SX:=Cross(Mama,Fama) and TD<=0;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B=0 AND Ref(B,-1)>0
Short exit
Fama:= ExtFml("MAMA.FAMA", (H+L)/2, 0.5, 0.05);
Mama:= ExtFml("MAMA.MAMA", (H+L)/2, 0.5, 0.05);
TD:=ExtFml("PowerPivots.TrendDirection",1,2);
LE:=Cross(Mama,Fama) and TD=1;
SE:=Cross(Fama,Mama) and TD=-1;
LX:=Cross(Fama,Mama) and TD>=0;
SX:=Cross(Mama,Fama) and TD<=0;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B=0 AND Ref(B,-1)<0
|