Skip to main content

Python module that provides collection of algorithms to analyze, categorize and predict stocks.

Project description

made-with-python

Python

pages-build-deployment

ThroneTrader

A collection of algorithms to analyze, categorize and predict stocks.

These algorithms are used to assess stocks, and make predictions about future stock prices.

The collection of algorithms leverage data analysis, machine learning, and statistical methods to achieve its objectives in the context of financial markets and investments.

Installation

python -m pip install throne-trader

Usage

Predict future stock prices using machine learning

from thronetrader import Predictions

predictions = Predictions(symbol="AAPL")
print(predictions.linear_regression_prediction())
print(predictions.gradient_boosting_prediction())

Generate buy/sell/hold signals based on real-time data

from thronetrader import RealTimeSignals

realtime_signals = RealTimeSignals(symbol="AAPL")

print(realtime_signals.get_financial_signals())
print(realtime_signals.get_insider_signals())

series1, series2 = realtime_signals.get_trading_volume()
print(series1.name)
print(series1.to_dict())
print(series2.name)
print(series2.to_dict())

Generate buy/sell/hold signals based on strategic algorithms

from thronetrader import StrategicSignals

strategic_signals = StrategicSignals(symbol="AAPL")

print(strategic_signals.get_bollinger_bands_signals())
print(strategic_signals.get_breakout_signals())
print(strategic_signals.get_crossover_signals())
print(strategic_signals.get_macd_signals())
print(strategic_signals.get_rsi_signals())

:bulb: While individual algorithms may lack optimal accuracy, the aggregation of multiple algorithms proves valuable and effective in enhancing overall prediction accuracy.

:warning: Please note that stock prediction is inherently challenging, and the accuracy of any prediction model will depend on the quality and relevance of the data used, the choice of algorithms, and the changing dynamics of the stock market. Continuous evaluation and improvement of the model are essential to enhance its predictive capabilities.

Components

Sample Notebooks

Disclaimer

Remember to thoroughly backtest and paper trade any strategy before using real funds, and always exercise caution and risk management when trading stocks.

Why throne-trader?

This name draws inspiration from the "Game of Thrones" series, where various characters vie for the Iron Throne, symbolizing power, wealth, and influence.

"ThroneTrader" signifies the algorithm's quest for dominance in the financial markets.

It suggests that my trading algorithm is on a mission to conquer the markets and achieve victory, much like the characters in the show strive to sit upon the Iron Throne.

Linting

PreCommit will ensure linting, and the doc creation are run on every commit.

Requirement

pip install sphinx==5.1.1 pre-commit recommonmark pytest

Usage

pre-commit run --all-files

Runbook

made-with-sphinx-doc

GitHub Pages

License & copyright

© Vignesh Rao

Licensed under the MIT License

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

throne_trader-0.0rc0-py3-none-any.whl (45.8 kB view details)

Uploaded Python 3

File details

Details for the file throne_trader-0.0rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for throne_trader-0.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b8c4f07425fc48a439ca3d6397414d3fa1bfa510a94783029bdc132ec37c7d8
MD5 4d65f55331d4a1530156b8471f1cb9b9
BLAKE2b-256 dff1dbc20237dd506b34591b3d5098bd16c6e6a0d070904a9e10643241b8a836

See more details on using hashes here.

Supported by

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