Skip to main content

Market price and indicator plotter.

Project description

STONKZILLA CLI

STONKZILLA CLI is a Python cli tool that allows to plot stock price data and a set of supported indicators.
Data for calculations and plotting is sourced from yfinance API by default or AlphaVantage (free, requires API key) if configured.
The stock price data can be plot using lines or candlesticks. Indicators that generally have values close to prices are being plot on the price subplot, oscillators/momentum indicators get separate subplots for good readability.
Supported indicators:

  1. Simple moving average (SMA),
  2. Exponential moving average (EMA),
  3. Bollinger Bands (BBANDS),
  4. Fibonacci Retracements (FIBO),
  5. On-Balance Volume (OBV),

Oscilating indicators:

  1. Relative Strength Index (RSI),
  2. Average Directional Index (ADX),
  3. Moving Average Convergence Divergence (MACD)

When entering indicators either in config.yaml or in terminal, use the same format:
INDICATOR_NAME:PARAMS
if indicator takes more than one parameters the next parameters are supposed to be enetered spaced with dashes:
INDICATOR_NAME:PARAMS-PARAMS2-...

Installation

Use the package manager pip to install foobar.

pip install stonkzilla

Or clone the repo and install dependecies:

git clone https://github.com/PraygeG/Market-Indicator-Cli.git
cd directory
pip install -r requirements.txt

Usage

The most basic usage of the tool and the most limiting is to simply run it without any arguments.
You'll be prompted to enter comma-separated list of tickers, start date, end date, interval and at least one indicator with parameters, this way of use deliver absolute minimum abilities of the tool.

If you decided to clone the repo:

python -m stonkzilla.main [args]

or if you decided to pip install:

stonkzilla [args]

To get help with arguments and get access to examples use help argument:

python -m stonkzilla.main --help  OR  stonkzilla --help

Reccommended usage

The tool supports running from YAML config file, which is highly recommended to avoid typing in the same arguments over and over after you'll find your favourite set of settings, this way is also better for plotting larger amount of charts.
The tool supports automatic plot saving to specified directory, in specified format, in specified DPI if raster format was chosen. Example config file with helping will always be in the package directory no matter which way you decide to install. If the path isn't recognized when config mode is on, the program will fall back to the default config file inside a package directory:

stonkzilla -c <config_path> or python -m stonkzilla.main -c <config_path>

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stonkzilla-0.1.6.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stonkzilla-0.1.6-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file stonkzilla-0.1.6.tar.gz.

File metadata

  • Download URL: stonkzilla-0.1.6.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for stonkzilla-0.1.6.tar.gz
Algorithm Hash digest
SHA256 ff5f5e7e98fac4d32ffb4c371e1851d52c0ec776c5860a0c1c95e31906c2fe93
MD5 e7e779fca65eaf5c65156c85bcada14a
BLAKE2b-256 2c3e66187fc43e3dd84950e521ef544ef5f4eb01a7d77e61477343ccadc2a7b9

See more details on using hashes here.

File details

Details for the file stonkzilla-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: stonkzilla-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for stonkzilla-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4b615292b388dfe61f60c013c82beed4281801ea897b62085eb0911c2264670c
MD5 f84bc9773562907492d96a0fa30741f8
BLAKE2b-256 ea3dd95148590972cd00065ca54bbe55f9c266dfe4c86aea9be26c232e71eb44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page