MetaStock -> Tools -> Indicator Builder -> New -> copy & paste complete formula below. ===================== Calendar days -> date ===================== ---8<----------------------------------------- {Counts calendar days to user-input date. v1.0 Copyright © 2008-2009 Jose Silva. For personal use only. http:/www.metastocktools.com } {Date input} day:=Input("Day [1-31]",1,31,31); mnth:=Input("Month [1-12]",1,12,12); yr:=Input("Year [1930-2029]",1930,2029,2012); {Date in yymmdd} y:=If(yr<2000,yr-1900,yr-2000)*10000; m:=mnth*100; date:=LastValue(y+m+day); {Plot in own window} Rnd(Life(date)) ---8<----------------------------------------- http://www.metastocktools.com