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

Re: [amibroker] Date/Time 3rd Party Functions?



PureBytes Links

Trading Reference Links

Hi Chris,

I generally find it easier to work with bar numbers if I need to perform 
math operations because they are continuous with no gaps. e.g. -

YourStartBar = ValueWhen( DateNum() == 1050601, BarIndex() );
TwoBarsEarlier = YourStartBar - 2;
...rest of your code...

After calculations, you can convert back to dates if you need to, e.g. -
DateYouWant = ValueWhen( BarIndex() == TwoDaysEarlier, DateNum() );

There is also similar TimeNum() function for intraday.

Steve

----- Original Message ----- 
From: "Christoper" <chrisismyname@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, July 24, 2005 1:48 AM
Subject: [amibroker] Date/Time 3rd Party Functions?


> I've done some searching in the 3rd party dll's but couldn't find
> anything... just wondering if anyone has done any work with date/time
> functions.
>
> i.e.  DateTime of (1050610) - 2 days usually works with simple math
> (minus sign) but let's say the Date is the 1st... then things break
> down... 1050601-2=1050599 which doesn't make sense.
>
> OR with Time...
> 070100 - 2mins(200) = doesn't make sense either.
>
> Also checked the library to no avail...
>
> if anyone knows if someone who has put this kind of stuff together
> that would be awesome!!!
>
> Thanks very much,
> chris
>
>
>
>
>
>
> 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
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
> 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> 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/