Hello,
No, retrieve works correctly.
Dates with time of 00:00:00 are retrieved correctly - if you
are using Visual Basic
it will display date only portion because this is the way how
Visual Basic works.
So there is nothing wrong - it is just the way how VB handles
dates with time stamp = zero
(it is also handled that way by date/time picker - part of
Microsoft Windows).
It is upto your program to interpret this
correctly.
Best regards, Tomasz Janeczko amibroker.com
----- Original Message -----
Sent: Friday, May 12, 2006 2:49 PM
Subject: Re: [amibroker] Is Simulator
tool broken?
Hi Dave/Thomas,
>From what I can deduce it seems that
the Retreive() function is not handing certain date/time stamps correctly
i.e '31/01/2003 00:00:00' the time portion is removed from the data so
(from memory) that particular bar will always appear as the first bar for
that days session until the new day is reached.
In March 2005 I
lodged a support ticket for that problem with the Retreive() function
which is part of the AMiBroker COM interface used by the simulator
tool. I made subsequent enquiries with Amibroker support and was told
by Marcin that he had referred the problem to Tomasz and I haven't
heard anything since.
I'm uncertain as to why you seem to see
the problem more now than before, it could be coincidence or perhaps some
other issue. If you would like to send me a copy of 3/4 days data I will
take a look for you.
(See copy of support ticket #18892
below)
Regards, William
Peters www.amitools.com
AB> Hello, AB> AB>
lngTotalQuotes = oMyStock.Quotations.Retrieve(lngQuotesEntered, varD, varO,
varH, varL, varC, varV, varOI) AB> AB> I am having a problem with
the Retrieve() method of the Quotations collection. AB> When the
Retreive method is used with data that contains the following
date/time AB> data it is treated as EOD data and the time is then
removed from the data AB> that is placed in the variant
array. AB> AB> 31/01/2003 00:00:00 AB> AB> I know that
I reported a simular problem some time back and it was fixed, I
can't AB> find the emails at the moment so it might have applied to a
different method etc. AB> AB> (I have attached some hourly data
for you to easily check this problem.) AB> AB> Regards, AB>
William Peters
DC> Thomas, DC> Thanks, yes I only ever
use it on intraday futures data, not forex. I have DC> only ever had one
slight problem before and that is when the simulator tool DC> is running
you can sometimes see huge spikes in prices that are not part of DC> the
data. But it is just for an instant, it disappears and the tool DC>
continues to run as normal, the resulting chart once the simulator
is DC> finished is the same as the original, it doesn't show the spike.
I've had a DC> look at the intraday data I'm running it against and it
appears to run OK DC> against data that is in say 1 or 2 minute etc time
frame, but it seems to be DC> having problems with data that is in like
5 second chunks. I don't remember DC> it having a problem with this data
before, maybe it did. DC> DC> Dave
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
|