PureBytes Links
Trading Reference Links
|
Thanks to all of you who were generous enough to help me with my
problems creating composite charts. I think I finally figured out
what happened. I had not one but two different problems
simultaneously, which made it difficult for me to realize what was
going on. The first problem was that my original database was
corrupted. I noticed recently that whenever I tried to use that
database, the composite chart always had errors on the same 5 days.
Also, only certain composites had the errors, which leads me to
believe that the data for some stocks was affected, but not the data
for all stocks. My original code was correct since I had copied it
straight from the "Intro to ATC" article several months ago.
My next problem occurred after I created a new database. By this
time, I had already tried to add the weightings to my stocks. I
didn't initialize the "w" variable, as Mr. Janeczko pointed out the
other day. This meant that although my 2nd (and probably 3rd and
4th and 5th) databases were not corrupted, the code was incorrect.
I realize now that when I used the "good" databases, the errors were
more random (i.e., not always on the same days). Mr. Janeczko
pointed out the other day that failure to initialize the "w" might
lead to random bars such as this.
So, my biggest mistake was not going back and simplifying the code
as much as possible when running it on my new databases. I thought
the code was fine since it seemed to work well for the first few
days, but apparently it wasn't.
I uninstalled AmiBroker and deleted all the databases and reloaded
everything just to be safe. Now it seems to be working fine.
Again, thanks to all of you who responded to my cry for help.
Hopefully I won't start getting errors in the next few days -- the
last time I thought it was working, I did start getting the random
errors within a few days after creating the composites. I think I
may be out of the woods this time, though!
Regards,
Jason
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|