Hello,

In such case you can use Now() function. It offers several formats to choose 
from.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "davemabe2000" <[email protected]>
To: <[email protected]>
Sent: Thursday, July 30, 2009 1:22 PM
Subject: [amibroker] Re: Record Backtest Duration Using a Timer - Get Epoch 
Time?


> Tomasz:
> 
> Doesn't this use the timestamp for the current bar that the backtest is 
> running on?
> 
> I need to use the current system time regardless of the timeframe I'm 
> backtesting on.
> 
> Dave
> 
> --- In [email protected], "Tomasz Janeczko" <gro...@...> wrote:
>>
>> Hello,
>> 
>> Use this
>> http://www.amibroker.com/guide/afl/afl_view.php?dayssince1900
>> 
>> You can use Hour() * 24 * 60 + Minute() * 60 + Second()
>> if you need number of seconds for "today".
>> 
>> Best regards,
>> Tomasz Janeczko
>> amibroker.com
>> ----- Original Message ----- 
>> From: "davemabe2000" <davem...@...>
>> To: <[email protected]>
>> Sent: Wednesday, July 29, 2009 6:42 PM
>> Subject: [amibroker] Record Backtest Duration Using a Timer - Get Epoch Time?
>> 
>> 
>> > I'd like to add duration time to the backtest report custom metric section.
>> > 
>> > In AFL how would I retrieve the current system time in epoch format 
>> > (seconds since Jan 1 1970)?
>> > 
>> > 
>> > 
>> > ------------------------------------
>> > 
>> > **** IMPORTANT PLEASE READ ****
>> > This group is for the discussion between users only.
>> > This is *NOT* technical support channel.
>> > 
>> > TO GET TECHNICAL SUPPORT send an e-mail directly to 
>> > SUPPORT {at} amibroker.com
>> > 
>> > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
>> > http://www.amibroker.com/feedback/
>> > (submissions sent via other channels won't be considered)
>> > 
>> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>> > http://www.amibroker.com/devlog/
>> > 
>> > Yahoo! Groups Links
>> > 
>> > 
>> >
>>
> 
> 
> 
> 
> ------------------------------------
> 
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
> 
> TO GET TECHNICAL SUPPORT send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> Yahoo! Groups Links
> 
> 
> 

Reply via email to