Date and Time calculations are a regular requirement in real-time trading/programming. Functions to process dates and time as numbers in arithmetic are provided on the Users' Knowledge Base:
http://www.amibroker.org/userkb/2007/05/07/date-arithmetic/
http://www.amibroker.org/userkb/2007/05/09/time-calculations/
best regards,
herman
For tips on developing Real-Time Auto-Trading systems visit:
http://www.amibroker.org/userkb/
Tuesday, November 27, 2007, 12:35:21 AM, you wrote:
> Thanks Herman.
> I think the 1 hour back count idea will also work e.g you can't
> subtract from DateNum() like a 'real number' but you can subtract at
> critical values (1 year == -10000).
> Timenum() - 10000 should give a minus 1 hour reference point == 60 * 1
> min bars or the equivalent.
> (Just thinking out loud).
> Yes?
> brian_z
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
> <*> To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
> <*> Your email settings:
> Individual Email | Traditional
> <*> To change settings online go to:
> http://groups.yahoo.com/group/amibroker/join
> (Yahoo! ID required)
> <*> To change settings via email:
> mailto:amibroker-digest@xxxxxxxxxxxxxxx
> mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
> <*> To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <*> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
__._,_.___
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
__,_._,___
|