Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey c1.... the % change would fluctuate around 0 for both volume and price change..... below would be something like you were thinkin about... copy/paste the blue code in you indicator builder and name it....
[color=red:d05755e6ef]c1 indicator[/color]
[color=blue:d05755e6ef]pds:=Input( "Periods", 1 {Minimum}, 20 {Maximum}, 15 {Default} );
plot:=Input("[1]c1close, [2]c1volume",1,2,2);
{the percentage the price has went up or down}
c1close:=((C-Ref(C,-pds))/Ref(C,-pds))*100;
{the percentage the price has went up or down}
c1volume:=((V-Ref(V,-pds))/Ref(V,-pds))*100;
If(plot=1,c1close,If(plot=2,c1volume,C))[/color]
the explorer might be;
column a ((C-Ref(C,-1))/Ref(C,-1))*100
column b ((C-Ref(C,-2))/Ref(C,-2))*100
column c ((C-Ref(C,-3))/Ref(C,-3))*100
column d ((C-Ref(C,-4))/Ref(C,-4))*100
column e ((C-Ref(C,-5))/Ref(C,-5))*100
column f ((C-Ref(C,-15))/Ref(C,-15))*100
that would return the % changes for those days back..... not sure if thats what you had in mind...... my coding expertise is limited as of yet....h
|