| 
Rank: Advanced Member
 Groups: Registered, Registered Users, SubscribersJoined: 10/29/2004(UTC)
 Posts: 1,394
 Location: Glastonbury, CT
 
 Was thanked: 3 time(s) in 3 post(s)
 | 
            
	      
                here are 3 displaced MA's recommended by Joe DiNapoli
 3X3:=Mov(Ref(C,-3),3,S);
 5X7:=Mov(Ref(C,-5),7,S);
 5X25:=Mov(Ref(C,-5),25,S);
 3X3;5X7;5X25;
 
 
 For those with PowerPivots Plus add-on this allows you to compare from a higher time frame
 
 TF:=Input("Time frame 1",1,100,1);
 Off:=Input("Offset",0,100,0);
 CD:= ExtFml("PowerPivots.TDataCreate",3,TF) ;
 3X3:=Mov(Ref(CD,-3),3,S);
 5X7:=Mov(Ref(CD,-5),7,S);
 5X25:=Mov(Ref(CD,-5),25,S);
 3X3:=ExtFml( "PowerPivots.TDataLocalize", 3X3, TF, Off);
 5X7:=ExtFml( "PowerPivots.TDataLocalize", 5X7, TF, Off);
 5X25:=ExtFml( "PowerPivots.TDataLocalize", 5X25, TF, Off);
 
 3X3;
 5X7;
 5X25;
 
 |