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)
|
here is an indicator Cycle 4,8,16,32,64 Comb w TDC
TF:=Input("Time frame 1",1,100,1); Off:=Input("Offset",0,100,0); HD:= ExtFml("PowerPivots.TDataCreate",1,TF); LD:= ExtFml("PowerPivots.TDataCreate",2,TF) ; CD:= ExtFml("PowerPivots.TDataCreate",3,TF) ; P0:=Mov(((CD-LLV(LD,4))/(HHV(HD,4)-LLV(LD,4)))*100,3,E); P1:=Mov(((CD-LLV(LD,8))/(HHV(HD,8)-LLV(LD,8)))*100,3,E); P2:=Mov(((CD-LLV(LD,16))/(HHV(HD,16)-LLV(LD,16)))*100,3,E); P3:=Mov(((CD-LLV(LD,32))/(HHV(HD,32)-LLV(LD,32)))*100,3,E); P4:=Mov(((CD-LLV(LD,64))/(HHV(HD,64)-LLV(LD,64)))*100,3,E); A0:=Mov(((P0-LLV(P0,4))/(HHV(P0,4)-LLV(P0,4)))*100,3,E); A1:=Mov(((P1-LLV(P1,8))/(HHV(P1,8)-LLV(P1,8)))*100,3,E); A2:=Mov(((P2-LLV(P2,16))/(HHV(P2,16)-LLV(P2,16)))*100,3,E); A3:=Mov(((P3-LLV(P3,32))/(HHV(P3,32)-LLV(P3,32)))*100,3,E); A4:=Mov(((P4-LLV(P4,64))/(HHV(P4,64)-LLV(P4,64)))*100,3,E); AC:=Mov(Mov((A0+A1*2+A2*3+A3*4+A4*5)/15,2,S),2,S); UZ:=Mov(AC,34,S)+(1.3185*Stdev(AC,34)); LZ:=Mov(AC,34,S)-(1.3185*Stdev(AC,34)); AC2:=Mov(AC,4,S); AC2:=ExtFml( "PowerPivots.TDataLocalize", AC2, TF, Off); UZ:=ExtFml( "PowerPivots.TDataLocalize", UZ, TF, Off); LZ:=ExtFml( "PowerPivots.TDataLocalize", LZ, TF, Off); AC:=ExtFml( "PowerPivots.TDataLocalize", AC, TF, Off); 95;50;5; AC;AC2;UZ;LZ;
This allows you to change the time frame of the indicator to plot a weekly indicator onto a daily chart
|