Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey george.... as an example of substituting for the 'c', changing from close to open and also adding ref(c,-1) will enable you to track gaps.... in the case of 5 chart layouts at times the gap will be off the screen, as space is at a premium.... a 'gap tracker' indicator will keep that gap in the field of view.... there are many other such variations......h
gap tracker
m:=Input("month",1,12,1);
d:=Input("day",1,31,1);
y:=Input("year",1990,2010,2006);
a:=ValueWhen(1, Month()=m AND DayOfMonth()=d AND Year()=y,Ref(C,-1));
aa:=ValueWhen(1, Month()=m AND DayOfMonth()=d AND Year()=y,O);
a;aa
multiple choice
pnt:=Input("close=1, open=2, high=3, low=4",1,4,1);
m:=Input("month",1,12,1);
d:=Input("day",1,31,1);
y:=Input("year",1990,2010,2006);
a:=ValueWhen(1, Month()=m AND DayOfMonth()=d AND Year()=y,C);
aa:=ValueWhen(1, Month()=m AND DayOfMonth()=d AND Year()=y,O);
aaa:=ValueWhen(1, Month()=m AND DayOfMonth()=d AND Year()=y,H);
aaaa:=ValueWhen(1, Month()=m AND DayOfMonth()=d AND Year()=y,L);
If(pnt=1,a,If(pnt=2,aa,If(pnt=3,aaa,If(pnt=4,aaaa,a))));
--------------------------------
|