thanks, graham
 
 
----- Original Message -----
From: Graham
Sent: Thursday, September 21, 2006 12:28 AM
Subject: Re: [amibroker] first/last 1-minute bar of each day

Try this
FirstBar = datenum()!=ref(datenum(),-1);
Lastbar = datenum()!=ref(datenum(),1);


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


On 20/09/06, dirk schreiber <tianatrading@yahoo.com> wrote:
hello group,
 
i want to simulate/backtest a system which closes all positions via MOC. how do i reference the LAST 1-minute bar for each individual day (sometimes my DB has 15:59, sometimes 15:58, sometimes 16:00 etc.)
and how would i code the FIRST 1-minute bar for the day?
 
thanks,
dirk 



__._,_.___

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
Software support Small business finance Business finance online
Business finance training Business finance course

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

__,_._,___


How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.

Reply via email to