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

Re: [amibroker] Re: trade.GetDateTime



PureBytes Links

Trading Reference Links

Hello,

If you want to compare date you may use StrToDateTime
www.amibroker.com/f?strtodatetime

and DateTimeToStr
www.amibroker.com/f?datetimetostr

instead of relying on datenum.


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Paul" <TradingIQ@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, July 17, 2006 2:19 PM
Subject: [amibroker] Re: trade.GetDateTime


> Tomasz if that is the case, it would be very helpful if there was a
> function that would allow for cross-referencing DateTime and DateNum
> since these are 2 AB internal datetime formats..or perhaps you know of
> any easy way to do it?
> 
> 
> Most of the systems developed are probably still EOD systems so while
> working  with Backtester you get DateTime and no means of converting
> DateTime to DateNum..
> 
> Paul
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@xxx> 
> wrote:
>>
>> Hello,
>> 
>> DateTime is used because DateNum is not sufficient (covers EOD only 
> as it only delivers the date)
>> while backtesting needs date AND time (intraday trading).
>> 
>> Best regards,
>> Tomasz Janeczko
>> amibroker.com
>> ----- Original Message ----- 
>> From: "Paul" <TradingIQ@xxx>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Sunday, July 16, 2006 8:26 PM
>> Subject: [amibroker] trade.GetDateTime
>> 
>> 
>> >I am little bit confused here.. with trade.GetDateTime.. since 
> most 
>> > operations in AB is based on DateNum.. why suddenly there is a 
>> > trade.GetDateTime that returns DateTime vs DateNum.. why not keep 
>> > everything in DateNum format??
>> > 
>> > 
>> > Tks for any explanations?
>> > 
>> > Paul
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 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
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> >
>>
> 
> 
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> 
>