GithubHelp home page GithubHelp logo

lastancientone / stock_analysis_for_quant Goto Github PK

View Code? Open in Web Editor NEW
1.6K 64.0 442.0 272.26 MB

Various Types of Stock Analysis in Excel, Matlab, Power BI, Python, R, and Tableau

License: MIT License

MATLAB 0.01% Jupyter Notebook 99.91% R 0.09%
stock-market stock-analysis trading-strategies technical-analysis technical-indicators stock-prediction signals quantitative-finance quantitative-trading quantitative-analysis

stock_analysis_for_quant's Issues

RSI.ipynb: TypeError: dtype '<class 'datetime.date'>' not understood

First of all, thanks for this large compendium of technical indicators, it's very useful.

I'm trying to run RSI.ipynb and when opened and ran in Colab, and I've got the following error:

TypeError: dtype '<class 'datetime.date'>' not understood

in the following cell:

from matplotlib import dates as mdates
import datetime as dt

dfc = df.copy()
dfc['VolumePositive'] = dfc['Open'] < dfc['Adj Close']
#dfc = dfc.dropna()
dfc = dfc.reset_index()
dfc['Date'] = mdates.date2num(dfc['Date'].astype(dt.date)) // <!-- Issue with this line.
dfc.head()

My questions:

  • What version of datetime you've used to run this notebook?
  • What do you suggest to fix it? Downgrading datetime to a different version, or the code should fixed forward?

Colab: https://colab.research.google.com/github/LastAncientOne/Stock_Analysis_For_Quant/blob/master/Python_Stock/Technical_Indicators/RSI.ipynb

Thanks.

Python TA HeatMap Analysis/Inference

Hello @LastAncientOne , you have done really great work in maintaining this repository.
I was wondering if you can share any reference or any reading item so we can understand how to analyse heat map generated by python TA notebook.
As a beginner, the amount of data seems intimidating :)

Trade Intensity indicator (TII)

Hi all, it would be useful to also have the Trade Intensity Indicator (TII) in the Technical_Analysis.xlsx spredsheet, do you think it is possible to implement it? many tks

new complementary tool

My name is Luis, I'm a big-data machine-learning developer, I'm a fan of your work, and I usually check your updates.

I was afraid that my savings would be eaten by inflation. I have created a powerful tool that based on past technical patterns (volatility, moving averages, statistics, trends, candlesticks, support and resistance, stock index indicators).
All the ones you know (RSI, MACD, STOCH, Bolinger Bands, SMA, DEMARK, Japanese candlesticks, ichimoku, fibonacci, williansR, balance of power, murrey math, etc) and more than 200 others.

The tool creates prediction models of correct trading points (buy signal and sell signal, every stock is good traded in time and direction).
For this I have used big data tools like pandas python, stock market libraries like: tablib, TAcharts ,pandas_ta... For data collection and calculation.
And powerful machine-learning libraries such as: Sklearn.RandomForest , Sklearn.GradientBoosting, XGBoost, Google TensorFlow and Google TensorFlow LSTM.

With the models trained with the selection of the best technical indicators, the tool is able to predict trading points (where to buy, where to sell) and send real-time alerts to Telegram or Mail. The points are calculated based on the learning of the correct trading points of the last 2 years (including the change to bear market after the rate hike).

I think it could be useful to you, to improve, I would like to share it with you, and if you are interested in improving and collaborating I am also willing, and if not file it in the box.

Considered including Options?

You have done a great job including almost everything there is. I would love to help you with this repo and include Options and options trading strategies in this wonderful repo. @LastAncientOne

pyflux error

wind 10
python 3.10

1).pycharm 2022.2:
-note: This error originates from a subprocess, and is likely not a problem with pip.
-error: legacy-install-failure

2).win10 CMD
-note: This error originates from a subprocess, and is likely not a problem with pip.
-error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pyflux

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Questions regarding the document

  1. For the "lazy portfolio" strategies, what are the fastest way to do backtesting and analysis? Lists like This, This, and This exists https://github.com/LastAncientOne/Stock_Analysis_For_Quant/blob/master/README.md#list-of-portfolio-strategies
  2. Are all of the risk factors in QuantStats essential, or are some of them correlated enough such that some are redundant? https://github.com/LastAncientOne/Stock_Analysis_For_Quant/blob/master/README.md#list-of-risk-adjusted-returns-ratios-measurement
  3. Are visualization a good idea for explaining stocks like PCA, Temporal Heatmaps, Correlative Networks, and Other Tools?
  4. How does the state of the market correlate with risk and return? https://gmarti.gitlab.io/qfin/2020/02/03/sp500-sharpe-vs-corrmats.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.