Quantitative Technical Analysis — Programs
This page contains links to the code for the listings in the book.
All the files are plain-text files. They can all be opened with any text editor.
Because some computer systems worry about files with strange file extensions, each file has been renamed from “filename.afl” or “filename.py” to “filename.txt”
When you have downloaded the file and copied it to the directory of your choice, change the extension from “.txt” to either “.afl” or “.py”
The AmiBroker programs are listed first, followed by the Python programs.
The data file used in Chapter 9 is at the end of the listings.
Each file is associated with a single listing in the book.
File Figure_7_26.txt corresponds to Figure 7.26 in the book.
All programs have been tested. They compile without error and produce the results shown in the book (or at least reasonably close).
There may be errors. When errors are reported, corrections will be made and revised listing posted in place of the erroneous ones.
Beyond correcting errors in the code, there is no support for these programs.
Please read and understand the disclaimer.
These programs are intended to be educational.
This is defintely Not investment advice.
Click any of the links to download that program.
As published in the book — using Python 2.7
Scroll down for revisions and Python 3.6
Revised in 2017 to comply with changes in libraries and to migrate to Python 3.6
Figure 8.75 V3
Figure 8.79 V3
Figure 9.11 V3
Figure 9.20 V3
Data file used in Chapter 9