MetaStock -> Tools -> Indicator Builder -> New Copy & paste formula below. ==================== Calendar Day of Year ==================== ---8<--------------------------- {Calendar Day of Year counter Count is independent of any missing chart data. Copyright © 2003-2008 Jose Silva http://www.metastocktools.com } { Calendar engine } leap:=Frac(Year()/4)=0 AND Frac(Year()/100)<>0 OR Frac(Year()/400)=0; m:=leap+ If(Month()=2,31-leap, If(Month()=3,59, If(Month()=4,90, If(Month()=5,120, If(Month()=6,151, If(Month()=7,181, If(Month()=8,212, If(Month()=9,243, If(Month()=10,273, If(Month()=11,304, If(Month()=12,334, -leap))))))))))); Day:=m+DayOfMonth(); { Plot in own window } Day ---8<--------------------------- http://www.metastocktools.com