Thanks Steve, you code worked fine. I added it to all of the volume- related indicators that I now use, including a file with lots of ATC functions that accumulate volumes for indexes.
I think you are right that its unique to my machine. I had removed TC from my machine a couple of years ago, but didn't remove the TC database directory from Amibroker. Before reinstalling TC I did remove all contents within Amibroker's Telechart directory but I kept all the broker.xxx files that contained layouts and watchlist data. Then I reinstalled the TC database into Amibroker and put the old broker.xxx files back into their proper directories. It all worked great except for this one day with screwy volume data. BTW, is there an proper method to remove a database from Amibroker? --- In [email protected], "Steve Dugas" <sjdu...@...> wrote: > > Hi Werner - In my experience using plugins like TC and QP, any changes along > those lines, if AB even allows you to make them, are likely to be > overwritten the next time the plugin reads the 3rd-party DB, which you must > do from time to time if you want to get new issues, etc. One thought, if you > use an #include file in your codes to define your settings as some do, you > could add a line there that redefines the Volume array, then any call to > Volume after that should use the redefined array. It shouldn't rewrite your > DB but might make things easier. Funny thing is, I think we have quite a > few people here that use TC for their data and I don't recall anyone > mentioning this before, which makes me think the problem may be unique to > your machine. You might try creating a new DB, or possibly try creating one > that stores the data locally and then one that doesn't to see if that has > any effect. Good luck! > > Steve > > ----- Original Message ----- > From: "wernerg97" <werner...@...> > To: <[email protected]> > Sent: Tuesday, January 13, 2009 7:51 AM > Subject: [amibroker] Re: Telechart Volume Data Error when read by Amibroker > > > > Thanks Steve, Putting that code into every indicator that uses > > volume is going to be a drag but I guess that's the only choice. Is > > there a way to permanently embedd the corrected volume for that day > > into Amibroker's database so that it overrides the data that it mis- > > reads in Telechart? > > > > --- In [email protected], "Steve Dugas" <sjdugas@> wrote: > >> > >> Hi - Can't tell you why it happens but you could try this as a band- > > aid... > >> > >> MyVolume = IIf( DateNum() == 1071108, Volume / 100, Volume ); > >> Plot( MyVolume, "MyVol", colorRed, styleHistogram ); > >> > >> Steve > >> > >> ----- Original Message ----- > >> From: "wernerg97" <wernerg97@> > >> To: <[email protected]> > >> Sent: Monday, January 12, 2009 8:13 PM > >> Subject: [amibroker] Re: Telechart Volume Data Error when read by > > Amibroker > >> > >> > >> > Does anyone have any ideas on how to fix this in Amibroker? A > > factor > >> > of 100 is a huge error and screws up any attempt to use time > > average > >> > volume-based indicators for backtesting. I can't imagine why > > only this > >> > one day shows the error on all stocks unless a format change for > >> > Telechart volume occured on that day and Amibroker assumes it was > > one > >> > day later. > >> > > >> > --- In [email protected], "wernerg97" <wernerg97@> wrote: > >> >> > >> >> I have Telechart Gold newly reinstalled (after about two years > >> >> hiatus). When I look at Telechart stock data in Amibroker, the > >> > volume > >> >> for all stocks on Nov 8, 2007 is higher than Telechart's data by > > a > >> >> factor of 100. I've only looked back over a few years but Nov 8, > >> > 2007 > >> >> appears to be the only day for which this happens. > >> >> > >> >> The database settings for the Telechart database in Amibroker > > are set > >> >> to not save data locally so Amibroker appears to read the data > >> >> incorrectly every time. > >> >> > >> >> Has anyone else seen this? > >> >> > >> >> Werner > >> >> > >> > > >> > > >> > > >> > ------------------------------------ > >> > > >> > **** IMPORTANT **** > >> > This group is for the discussion between users only. > >> > This is *NOT* technical support channel. > >> > > >> > ********************* > >> > TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail > > directly to > >> > SUPPORT {at} amibroker.com > >> > ********************* > >> > > >> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > >> > http://www.amibroker.com/devlog/ > >> > > >> > For other support material please check also: > >> > http://www.amibroker.com/support.html > >> > > >> > ********************************* > >> > Yahoo! Groups Links > >> > > >> > > >> > > >> > > >> > > > > > > > > ------------------------------------ > > > > **** IMPORTANT **** > > This group is for the discussion between users only. > > This is *NOT* technical support channel. > > > > ********************* > > TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to > > SUPPORT {at} amibroker.com > > ********************* > > > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > > http://www.amibroker.com/devlog/ > > > > For other support material please check also: > > http://www.amibroker.com/support.html > > > > ********************************* > > Yahoo! Groups Links > > > > > > > > >
