Tool to build date-based Gann square.
-
Large sizes
-
Despite of regular usage in economic sphere, this program could also provide the date sequence instead of numbers. It allows to analyze the distribution of important dates.
-
Visualization support (basic Gann visualization and cells highlighting)
To build classic Gann square:
python gann.py -o <output file name> -s <square size>
<square size>
is a number of cells on each axis
To build Gann square based on date:
python gann.py -o <output file name> -a <base date> -b <final date> -m <path to list of dates to mark>
Input date format: "dd/MM/yyyy"
To highlight cells provide .json file with structure:
[
{
"description": "<description>",
"color": "<color>",
"data_path": "<path to dates>"
},
{
"description": "<description>",
"color": "<color>",
"data_path": "<path to dates>"
}
]
<path to dates>
should be replaced with a path to .txt file with dates to highlight.
Format:
<date1>
<date2>
...
To avoid performance issues it is recommended to build large square by chunks.
Each cell can be determined only by its position and previous cells are not required.
To build Gann sub square based on date:
python gann.py -o <output file name> -a <base date> -b <final date> -m <path to list of dates to mark> -r "<left>;<bottom>;<right>;<up>"
Gann square has the following coordinate system inside the program:
____ ____ ____
|-1 1|0 1|1 1|
|-1 0|0 0|1 0|
|-1-1|0 -1|1 -1|
So when you specify -r "-5;-5;5;5"
, that will cut the center square with size: 11x11.
Run cmd:
$ python gann.py -o "example/proton-m-launches.svg" -a "07/04/2001" -b "19/03/2015" -m "example/data.json"
proton-m-launches.html
will show you successful and unsuccessful launches of 'Proton-M' for the last 14 years.
- Python 3
This project is licensed under the terms of the MIT license. (see LICENSE.txt in the root)