I am running amibroker on my linux machine using wine. My symbols list ( different for everyday) is present in a text file and would like to import into amibroker.
Since the ActiveXComponent is not present in linux, would like to know if any other way to add symbols to amibroker database and also cleanup database at the end of the day in one signal call.
Have you looked at the ASCII file Import functions?
That may get your data in, but I don't know off the top of my head how to assist in the daily wiping out of the database. Logically, delete the file and re-create, but that would mess up your charts...
I have a client program which gets the list of stocks that are candidates for trading and needs to be imported to AB. These stocks symbols are present in a text file. Before importing the symbols to AB, I would like to clean the AB database so that previous days data of any symbol is not present. After importing symbols, I would like do back filling of the symbols added before market opens. Once the market opens the live ticks will be feed to AB through plugin. Then the scanner is run on all the symbols to generate the sell and buy signals.
Data source for AB is coming from the client program running locally . It uses websocket connection with broker server for backfill data and also for live ticks. My client programs dumps the ticks data to a file and then the AB plugin will read the file. ( I am thinking of extending ASCII plugin for this). I know that this solution is not optimal, however I would like to improve it after I get hands on with the AB programming.
My solution is focussing on mainly the intraday trading.
Well i can come up with a crude idea for so called cleanup.
Create and empty DB and save your layout and everything else that can be saved.
Say default DB is Data.
Create a copy of it.
Every day after work, delete the Data folder and create a copy from the empty one called Data.
Its crude and it should work but it's untested.
For the import, you can import ascii file symbols in one step.
Will let you know if i can think of something.