Read foreign ticker in another database

I would like to access a ticker from another database in Amibroker using AFL.

The AFL function foreign() can only access foreign ticker in current database.

However, I would like to access a foreign ticker in another database, preferably using AFL. This ticker is actually a composite ticker. Can this be done?

You can only access symbols in the current database.

So you should move that data you want to access to current database. It is just a file. You can copy it with Windows explorer to appropriate folder The only thing to watch for is that if you move data files you should delete broker.master file so it gets recreated next time you load database.


Recently, I tried to copy a single file representing a stock index to another database.

This is what I did.

  1. Copy file from source to destination
Source file: C:/AmiB/Futures-db/_/.STI
Destination file: C:/AmiB/Singapore-db/_/.STI
  1. Delete broker.master from C:\AmibrokerDB\Singapore-db\

After doing the above steps, I tried to look for symbol .STI in amibroker database but could not find it.

I am using Metastock data plugin. Could this be the source of the problem?