|
Bob,
Thank you.
How do
I fix the formula below?
I seem
to understand the sweet subtraction, but assigning the conditions is what I'm
struggling with - I get an Empty value.
Obviously, it's me... I appreciate it.
for
example:
/* Days Between Dates v4 */ price = Close; sig = MA(High,20);Cond1 = Cross(price,sig);Cond2 = Cross(sig,price);////////////////////////////////// dt = DateNum();dy = DayOfYear() + 365 * Year();startDay = fb = Status("rangefromdate") AND COND2;endDay = eb = Status("rangetodate") AND COND1;Days = LastValue(ValueWhen( dt == eb, dy ) - ValueWhen( dt == fb, dy ));Plot (Close,"Close",1,128);Plot (days,"days",colorBlack,styleLine);Daysbetween = Days; Plot (sig,"sig",2,1);Plot (Daysbetween ,"Daysbetween ",10,1 );
__._,_.___ Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- Re: [amibroker] DaysBetweenDates() Bob Johnson
- RE: [amibroker] DaysBetweenDates() TimeBetweenConds() Mr. Valley
