Open technqvi opened 1 year ago
@technqvi i think i get same problem with writing to Amibroker db as you https://github.com/F2011B/ami2py/issues/8
Were you able to find some better ways to write to DB? Or any results with ami2py?
I get some success with MS SQL database, another way to write on windows side using OLE https://github.com/jawakow/Oanda2Ami/blob/master/Oanda2AmiGui.py
Hi
I try to write data from CSV file to a database as an example. https://github.com/F2011B/ami2py#examples
It seems that there is no append_data_to_symbol method in this package but I use append_symbole_entry method instead. I assume both are the same.
However, Data from CSV.file didn't import into Amibroker Database by using this function. Beyond that it turns out I save a blank database instead as the figure below. After writing data to the database, it turns into an empty database. What is wrong with my code?
This is my simple code. I have one thing different from your example I remove db.add_symbol("AAPL") because all of symbols are existing in Amibroker and I add db.ensure_symbol_folder(row['Ticker']) on for loop instead. I am not sure what is the right way to check where each symbol exists on the Database or not.
Please fix the problem so that I can import csv file to Amibroker using this ami2py.
This is my csv format.
Finally , I try to use db.append_symbol_data as below , it is nothing better. my data turn into empty database as well as the prior function.