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)
|
priceType:=Input("Price (Open=0 High=1 Low=2 Close=3)", 0, 3, 3);
length:=Input("Length", 1, 1000, 20);
factor:=Input("TFactor", 0, 1000, 1);
offset:=Input("Offset", 0, 1000, 0);
Mat:=Input("MA 1=Sim 2=Exp 3=Var 4=Weight 5 =tria 6=Time",1,6,1);
htfData:=ExtFml("PowerPivots.TDataCreate",priceType, factor);
X:=If(Mat=1, Mov(htfData, length, S),If(Mat=2, Mov(htfData, length, E),If(Mat=3, Mov(htfData, length, VAR),If(Mat=4, Mov(htfData, length, W),If(Mat=5, Mov(htfData, length, TRI), Mov(htfData, length, T))))));
results:=ExtFml("PowerPivots.TDataLocalize", x, factor, offset);
results;
|