ami2py will read AmiBroker data into python. The current version is .0.8.1 WARNING: It only provides day resolution on data.
It looks like the authors did some work on providing intraday resolution but never finished.
The following few lines of code read a symbol from AmiBroker into a pandas df
import pandas
import ami2py
folder='C:/Program Files/AmiBroker/Databases/StockCharts'
symbol='indu'
df = pandas.DataFrame()
symbolData = ami2py.AmiDataBase(folder).get_dict_for_symbol(symbol)
for z in ['Year', 'Month', 'Day', 'Open', 'High', 'Low', 'Close', 'Volume'] :
df[symbol+':'+z] = symbolData[z]
print(df.describe())
we now have a plugin called AmiPy
AmiPy plug-in: AmiBroker-Python integration
UPDATE January 5, 2021: Version 0.4.2 released!
With permission from @Tomasz I am announcing here the next version of my AmiBroker-Python integration plugin. This plugin allows you to call Python functions from AFL side. This opens out possibility to use wide selection of Python libraries such as numpy, scilearn, tensorflow and such in AmiBroker.
Download link:
AmiPy 0.4.2: http://ev1.pl/amipy/AmiPy_0_4_2.zip
(64 bit only)
VirusTotal file check 1…
you can simply pass complete arrays to python and put it into a dataframe
An example is shown here:
if you installed the Python plugin you can also play around with code that is available in Python. I just tried this 1: https://github.com/matplotlib/mplfinance/blob/master/examples/price-movement_plots.ipynb
I made a simple implementation. I assume you figure out how to get it running. Resulting chart for some hourly @ES# data.
the AFL code:
PyLoadFromFile( "PnF", "C:\\Users\\win 10\\AppData\\Local\\Programs\\Python\\Python38\\mypython\\pointandfigure.py" );
trig1 = ParamTrigger( "Trig1", "…
AmiPy and Ami2Py are 2 different things.
AmiPy supports python function calls from AB.
Ami2Py reads AB database data from python. It is fast. It imported about 1M ticks in a few minutes. The issue is that it does not have H:M:S resolution. Today, i wrote a python COM client to import ticks from an AB database. My estimate is it will take it about 15 hours to do the same thing. If my data was only EOD, Ami2Py would be clearly be the python data import tool of choice.
ah ok thanks, I was unaware of that
system
Closed
October 13, 2021, 8:30am
#5
This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.