Re: [amibroker] DaysBetweenDates() TimeBetweenConds()

2006-10-05 Thread Bob Johnson
yleOwnScale );   - Original Message - From: Mr. Valley To: amibroker@yahoogroups.com Sent: Wednesday, October 04, 2006 9:35 PM Subject: RE: [amibroker] DaysBetweenDates() TimeBetweenConds() Bob, Thank you.   How do I fix the formula below? I

RE: [amibroker] DaysBetweenDates() TimeBetweenConds()

2006-10-04 Thread Mr. Valley
groups.com [mailto:[EMAIL PROTECTED]On Behalf Of Bob JohnsonSent: Wednesday, October 04, 2006 4:22 PMTo: amibroker@yahoogroups.comSubject: Re: [amibroker] DaysBetweenDates() I had similar question about comparing DateTime formatted values to determine the days between them. I wanted t

Re: [amibroker] DaysBetweenDates()

2006-10-04 Thread Bob Johnson
The solution doesn't deal with leap years, but I could live with the possibilty of missing a trade or two every 4 years so I didn't attempt to add that.   Regards,   Bob Johnson   - Original Message - From: Mr. Valley To: amibroker@yahoogroups.com Sent: Tuesday,

Re: [amibroker] DaysBetweenDates()

2006-10-03 Thread Steve Dugas
If you are only concerned with the number of bars, you could use BarIndex, e.g startDay = LastValue( ValueWhen( Cond1 , BarIndex() ) ); Steve - Original Message - From: "Mr. Valley" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 03, 2006 8:38 PM Sub

[amibroker] DaysBetweenDates()

2006-10-03 Thread Mr. Valley
I'm having trouble with calculating the number of days between the dates of two conditions, either daily or intraday intervals. I looked at the DeDateTime.dll These were planned functions, but I don't see them implemented. GetDaysBetween() and GetTradeDaysBetween() Also tried... /* Days Between