Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey ifiaas.... most of your post i could not clearly understand.... as far as the hide the trend line before date x that can be obtained by including a date component in the code... here is a post where some of the better coders , henry, roy, jose, wabbit, talked of the differing methods....
below is a example of that code.....
now for the parts i didnt understand.... by plot the some function are you meaning the sum function ...... and if so, are you summing 1 security closing prices or many.... h
summing volume from a certain date
==========================
pnt:=Input("close=1, high=2, low=3",1,5,1); pds1:=Input("fast macd periods 1",2,100,5); pds2:=Input("slow macd periods 2",3,100,9); pds3:=Input("moving average trigger periods 3",2,100,3);
m:=Input("month",1,12,1); d:=Input("day",1,31,3); {y:=Input("year",1990,2010,2006);}
0; upv:=Cum(If(If(pnt=2,H,If(pnt=3,L,C))>Ref((If(pnt=2,H,If(pnt=3,L,C))),-1),V,0)); dnv:=Cum(If((If(pnt=2,H,If(pnt=3,L,C)))<Ref((If(pnt=2,H,If(pnt=3,L,C))),-1),V,0)); a:=upv-dnv; aa:=ValueWhen(1, Month()=m AND DayOfMonth()=d AND Year()=2005,a);
aaa:=a-aa;
b:=Mov(aaa,pds1,W)-Mov(aaa,pds2,W);
bb:=Mov(b,pds3,W);
b;bb
==========================
|