PureBytes Links
Trading Reference Links
|
<snipped>
Roy, How can I draw a line bewteen only two points. I can start the
line at the time period when I want, but when the period has elapsed
the line keeps going at its last value. (I hope this makes some
sense?)
Anyway the code I am using is:
fmDay:=Input("Date from (dd)",1,31,1);
fmMonth:=Input("Date from (mm)",1,12,1);
fmYear:=Input("Date from (yyyy)",1980,2099,2003);
toDay:=Input("Date to (0 - last day)",0,31,31);
toDay:=If(toDay=0,LastValue(DayOfMonth()),toDay);
toMonth:=Input("Date to (0 - last month)",0,12,12);
toMonth:=If(toMonth=0,LastValue(Month()),toMonth);
toYear:=Input("Date to (0 - last year)",0,2099,2003);
toYear:=If(toYear=0,LastValue(Year()),toYear);
afterFrom:=(DayOfMonth()>=fmDay AND Month()=fmMonth AND Year()
=fmYear) OR (Month()>fmMonth AND Year()=fmYear) OR Year()>fmYear;
beforeTo:=(DayOfMonth()<=toDay AND Month()=toMonth AND Year()=toYear)
OR (Month()<toMonth AND Year()=toYear) OR Year()<toYear;
ValueWhen(1,afterFrom AND beforeTo,C)
You might notice the horizontal line at the level of the last closing
price on the last day in the period. This is the portion I would
like to get rid of, leaving only the data within the specified time
frame.
Any assistance would be appreciated. Thanks in advance.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/zMEolB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|