This repository demonstrate how to run any machine learning model on top of Amibroker AFL. This can be made possible by using pywin32 to register Python code to Python COM server and use it as Amibroker Object
Our machine learning model is used to classify certain price action by using 30 days period OHLC data from Amibroker.
Method of connecting Amibroker with python is Heavily inspired by this thread
- Install same architrecture of Python (X86 or X64) as your Amibroker's architeccture
pip install -r requirements.txt
- finish installation of pywin32 by running command
python Scripts/pywin32_postinstall.py -install
in your python Scripts directory - Open new terminal as administrator and run
python server.py
to register COM server - Run
demo.afl
on Amibroker
python server.py --debug
- Open PythonWin (Automatically installed by pywin32)
Tools -> Trace Collector Debugging Tool
- Python version used in this demo is 3.8.10 32 bit and is not tested on 64 bit version yet.
- Pleas note that model provided in this repository is dummy one. We do not and will not publish currently used our model. Please train one yourself.
- We have not tested the concept with more advanced model from Tensorflow, Keras, and Pytorch yet, but it should work with slight modification.
- Not tested with Virtual environment, Anaconda, or Docker yet.