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.

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.5.tar.gz (25.1 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.5-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stonkzilla-0.1.5.tar.gz
  • Upload date:
  • Size: 25.1 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.5.tar.gz
Algorithm Hash digest
SHA256 53028020a75122cccd6c5635c1487f33c4f2a711247cd928d878dad5f78f0cd2
MD5 3e217044d9b0c095a3e51ee42ee09e91
BLAKE2b-256 8ff7351a6c46dba165dc57a2398df4da1f7704c47aaef70a6a767ac1581cd6b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stonkzilla-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 34.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 575b298a65d32bd6730a723e917a618855d5e670738f4dfeb3060c1c22740f56
MD5 a7edaae3c3e03fac8b4def09b447dbb0
BLAKE2b-256 6cbad3f3e99c6abf0ccf6a10ecdd5cd0128d89d102f4fc66de53900b4aa446ce

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