What type of data base, intraday or eod? If it is intraday you may have data you don't see, i.e. after hours data. Also your database may have tickers that have not been updated for a while. Deleting the last 5 bars might not give the desired results so whatever program you use you must be specific.
I don't know how to do this with AFL but you could do it with a java script program. You will probably need to pass parameters to the program to define exactly what bars, date and time, you want to delete. If you go this route Google BackEdit 11 and download the free java editor. You can use notepad but it is much easier to use BackEdit, especially if you have code errors. There are samples of script files shipped with AB so look at those first in the Scripts folder. The cleanup.js program shows you how to migrate through the whole database. Barry --- In amibroker@yahoogroups.com, "khaleel_sk" <[EMAIL PROTECTED]> wrote: > > how to delete latest five bars from entire database through AFL >