[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Metastockusers] RE:Re: Bar Count since certain date



PureBytes Links

Trading Reference Links

bruneski came up with a variation of my approach which is corrects some
failures of my version.
So I suggest trying this one:

{BarsSinceDate}

d:=Input("Day",1,31,1);
m:=Input("Month",1,12,1);
y:=Input("Year",1920,2030,2002);

mydate:= 10000*y + 100*m + d;
date:= 10000*Year() + 100*Month() + DayOfMonth();
count:=BarsSince(mydate<=date); {use '<' if first day is not to be
counted}

count:=count + Cum(If(count=0,1,0));
count


To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/