Just a warning. Don't plonk that code in a script and run it unless you understand it, or you'll potentially corrupt your data, and I don't want to be responsible for that. :)
Regards, Julian. --- In amibroker@yahoogroups.com, "Julian" <juliangoods...@...> wrote: > > Mikey, > > you just need to import it as the same IB symbol. > E.g. If your symbol name is > APU9-SNFE-FUT-AUD > then name your ascii file > APU9-SNFE-FUT-AUD.txt > > Then import it using the wizard. This will import the ascii data into that > symbol. From that point on, IB will continue to tack new information onto the > end of that symbol. > However, if you ever do a force backfill on that symbol, then you will need > to import the ascii file again. > Also be aware that your timeframe and timebase need to match the AB > databases. I.e. The timestamp in your historical data needs to match the > timestamp of the database. E.g. is it local time, exchange time or some other > time zone? Time offsets can be specified in the .format file explained below. > > I use the following code to import data so I don't have to keep using the > menus. > > importTrigger = ParamTrigger("Import History","Click to Import"); > if (importTrigger){ > AB = CreateObject("Broker.Application"); > > // Import data > filename = Name() + ".txt"; > importRules = "Formats\\rollover.format"; > result = AB.Import(0, filename, importRules); > } > > filename is the name of the current symbol. You'd need to prepend this with > the address to the folder that the historical data is stored in. > importRules refers to a .format file in the Formats folder. These files > specify the format for importing ascii data. If you don't know what these > are, refer to the "Reference guide->ASCII importer reference" section in the > Help. > > Regards, > Julian. > > > --- In amibroker@yahoogroups.com, "exactly34" <mikeyatease@> wrote: > > > > I have lengthy data (ASCII format), both daily and intraday, for futures > > contracts which I would like to import to AmiBroker, and then, upon > > successful import, thereafter have IB keep this data current. > > > > I've hunted the forum and documentation could not find any information on > > doing this. Is this possible? How is it done? I would be very thankful for > > any help. > > > > Regards, mikey > > >