Giter Club home page Giter Club logo

statistic_monster's Introduction

ABOUT STATISTIC_MONSTER V1.2

This version will provide real time spot market data in daily chart with macd and momentum values.And it will make you compare the behaviors of two different assets via pearson corelation and also it will help you to make prediction on asset's prices via technical indicators and this will also help you to decide which way you will trade let me give an example let us think ethusdt and adausdt pairs.Here adausdt is dependent variable y, ethusdt is independent variable x we will use the last 100 data from selected pairs sources['let assume our source is Close prices and also this code gets always last 100data from the selected databases' sources.'].Here are the results on their linear regression,standart deviation,standart deviations' product and pearson correlation:

standard deviation of ADAUSDT 0.41445938283687733 standard deviation of ETHUSDT 78.64974811771361 the covariance is cov(x,y) = 30.94366775689899 the product of standard deviations is 32.59712606514344 the corellation is r = 0.9492759482863575

and let's also look to the coefficient of determination for this regression:

coefficient of determination r**2 is 0.9011248259949636 which means model regression and corelation of adausdt and ethusdt is a 90 percent meaningful method and it is statistically meaningful. What it provides you as a trader it means to predict adausdt's price looking ethusdt's price behavior is a logical manner.As you see it helps you to compare assets and according to this result we see that if ethusdt price decreases adausdt price will probably decrease too and vice versa if ethusdt price increases because r = 0.9492759482863575 is a positive strong correlation.

And we have also graphics who give momentum,macd(I did not include histogram),candlestick data and the relation between 50,100,200 simple moving avarages and close price.Via momentum you can look to faster price moves becuse momentum is m(c)=ct-ct-10 where t is time,m momentum and c is closing prices and you can confirm momentum via macd'moving avarages convergent divergent' and its signal which [macd=fastema-slowema, signal=ema(macd), histogram=macd-signal but I did not include the last formula in the code] and default values for variables: [ fastema=ema length 12 bar(in our case 12 days' expotential moving avarage) shortema=ema length 26 bar(in our case 26 days' expotential moving avarage) signal=ema of macd length 9(9 macd data's expotential moving avarage) histogram is same as histogram=macd-signal ]

also for simple moving avarage 50 day sma crossover 200 day sma is a bullish case called golden cross and vice versa called death cross and it is bearish also if 50 day ma crossover 100 day ma it is bullish as well because this means demand increases on asset.And one last thing is you can continously got first selected asset's last price in our regression example it is adausdt which is dependent variable y. Lastly codes are provided in both form as python file and interactive python jupiter notebook file,and in this version you can calculate compound and normal interest and draw their regression graphics too.

HOW TO USE IT

All you have to do putting config.json to your api_key and api_secret after you got api from binance to be able to use croquis template and calculating z-scores but you can directly calculate the interest.To use it with normal python all you have to do is writing python main.py on terminal. You can use croquis template in your project as respecting MIT license and also including following info for MPL/2.0 license : """// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Taneristique"""

DEPENDENCIES

[python-binance2==1.0.13 openpyxl==3.0.9 pandas==1.3.3 numpy==1.21.2 matplotlib==3.4.3 pyfiglet==0.8.post1 plotly==5.3.1 scipy==1.6.1]

TO INSTALL DEPENDENCIES

Run the following line in the terminal: pip install -r requirements.txt.

statistic_monster's People

Contributors

existentielisteprogrammer avatar taneristique avatar

Watchers

 avatar  avatar

statistic_monster's Issues

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.