Code Monkey home page Code Monkey logo

sup-res's Introduction

Sup-Res πŸ“ˆ

For online demonstration -> https://arabacibahadir.github.io/sup-res/

Sup-Res is mobile-ready, offline-storage compatible and a great companion for finding liquidity pools, support and resistance levels with a scalable chart.

ezgif com-gif-maker

Features 🌟

  • Easily find support-resistance and liquidity levels on the chart
  • Using it in almost any time series with sensitivity adjustment
  • Export documents as HTML, PDF, .jpeg, .png
  • Automatically share to your twitter followers with an image and text of support-resistance levels
  • Supports Tradingview Pine Script
  • Manageable via Telegram
  • WebUI

git

Installation πŸ› οΈ

Sup-Res requires Python 3.10+ to run. Use the package manager pip to install libraries. This process may take a long time.

pip install -r requirements.txt

Usage πŸ’»

This tool allows you to generate charts for different cryptocurrencies and time frames using the Binance API. When you run the code, main function will ask ticker and time frame and then the local web page will open where you can see the support-resistance levels, RSI, SMA, MACD, Fibonacci and candlestick patterns.

You can run the script with arguments for the ticker and time frame you want to generate a chart for. To do this, enter the following command:

python main.py <ticker> <timeframe>

For example, to generate a chart for the BTCUSDT ticker with a 1-hour time frame, you would enter:

python main.py BTCUSDT 1H

You can also run the script without any arguments and then enter the ticker and time frame in the command line when prompted. To do this, enter the following command:

python main.py 

If you want to generate charts for multiple pairs at once, you can use the multiple_run.py script located in the miniscripts directory. This script will generate charts for all the pairs listed in the coin_list.csv file. To run this script, enter the following command:

python miniscripts/multiple_run.py
Supported Tickers: 
All Binance tickers
Supported Time Frames: 
1M, 3M, 5M, 15M, 30M, 1H, 2H, 4H, 6H, 8H, 12H, 1D, 3D, 1W (M: Minute, H: Hour, D: Day, W: Week)

If you want to share as a tweet, change api keys with yours in git_tw_access.py file, and change your user handle name. Twitter API guide. Then uncomment save and twitter functions in main.py.

# Twitter api keys -> https://developer.twitter.com/en/docs/twitter-api
twitter_api = 'YOUR-API'
twitter_key_secret = 'API-SECRET'
twitter_token = 'TOKEN'
twitter_token_secret = 'TOKEN-SECRET'
user_handle = '@HANDLE-NAME'

Pine Script file will be created after run successfully main function.

Your python alias might be different like "py, python3", you should change your alias if you are using telegram-bot if your python alias is different.

By adjusting the sensitivity of the data in the code, you can obtain lines that are more precise.

chart

Main Motivation πŸ“š

Those who are new to investing do so without any technical expertise. Additionally, individuals who have limited experience make their buys and sells in accordance with various charts and follow the price actions. The main focus of this work is technical analysis.

I worked on a piece of code that could be useful for users with little prior knowledge of price action. Don't invest if you really have no idea what you're doing. You should keep an eye on market trends before investing and try not to feel FOMO.

Zones rather than just lines typically represent supports and resistances. Markets push you toward points where you can stop your position, particularly in cryptocurrencies. Keep an eye out for breakouts with high volume, sudden price changes, and trend reversals. It is extremely risky to trade on new coin charts without support and resistance levels if you are investing in low volume coins.

image

Support-Resistance Lines πŸ“‰

You can draw a trustworthy line at a point where a pair has repeatedly failed to break it or has advanced by tapping it. The consensus is that this price should be touched at least twice and ideally three times. Reliability rises as the number of touches increases. If the price moves below the support line, this support will act as resistance. The opposite is also true. If the price breaks the resistance, it can work as support, but these situations should be fully supported by volume.

28sep

28 September 2021 BTCUSDT Binance

Indicators πŸ“Š

MA, RSI, MACD, Fibonacci Retracement Levels, Candlestick Patterns

Never rely solely on a single piece of information or indicator as this can be deceptive. Fundamental analysis should always be combined with technical analysis.

legend

Pine Script πŸ“‘

Sup-Res supports Pine Script scripting language. Just run main.py file, then copy "./pinescript.txt" and paste Tradingview Pine Script section. Also telegram bot works with Pine Script.

Here is the example Pine Script code:

//@version=5
indicator('Sup-Res BTCUSDT 1d', overlay=true)
plot(ta.sma(close, 50), title='50 SMA', color=color.new(color.blue, 0), linewidth=1)
plot(ta.sma(close, 100), title='100 SMA', color=color.new(color.purple, 0), linewidth=1)
plot(ta.sma(close, 200), title='200 SMA', color=color.new(color.red, 0), linewidth=1)
hline(18626.0, title="Lines", color=color.red, linestyle=hline.style_solid, linewidth=1)
hline(18910.94, title="Lines", color=color.red, linestyle=hline.style_solid, linewidth=1)
hline(19706.66, title="Lines", color=color.red, linestyle=hline.style_solid, linewidth=1)
hline(20111.62, title="Lines", color=color.red, linestyle=hline.style_solid, linewidth=1)
hline(21888.0, title="Lines", color=color.red, linestyle=hline.style_solid, linewidth=1)
hline(22799.0, title="Lines", color=color.red, linestyle=hline.style_solid, linewidth=1)
hline(24668.0, title="Lines", color=color.red, linestyle=hline.style_solid, linewidth=1)

Contributing 🀝

Pull requests are welcome, any contributions you make are greatly appreciated. Please open an issue with what you want changed before submitting a PR.

Follow PEP 8 Coding Style guidelines.

  • Fork the Project
  • Create your Feature Branch git checkout -b feature/NewFeature
  • Commit your Changes git commit -m 'Add some NewFeature'
  • Push to the Branch git push origin feature/NewFeature
  • Open a Pull Request

License πŸ“ƒ

Sup-Res is licensed under the GNU General Public License v3.0

sup-res's People

Contributors

arabacibahadir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sup-res's Issues

Error Install Debian 64bits

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
crackmapexec 5.4.0 requires aioconsole<0.4.0,>=0.3.3, but you have aioconsole 0.3.1 which is incompatible.
crackmapexec 5.4.0 requires minikerberos==0.3.3, but you have minikerberos 0.3.5 which is incompatible.
crackmapexec 5.4.0 requires neo4j<5.0.0,>=4.1.1, but you have neo4j 5.2.dev0 which is incompatible.
crackmapexec 5.4.0 requires pypsrp<0.8.0,>=0.7.0, but you have pypsrp 0.5.0 which is incompatible.
crackmapexec 5.4.0 requires xmltodict<0.13.0,>=0.12.0, but you have xmltodict 0.13.0 which is incompatible.

Add weekly and monthly timeframes

Problem

Currently, our application only supports certain timeframes for data analysis. We need to add support for weekly and monthly timeframes as well.

Solution

We can add support for weekly and monthly timeframes by implementing the necessary code changes to allow users to select these timeframes when viewing data.

Expected outcome

Our application will support weekly and monthly timeframes in addition to daily timeframes, and users will be able to select and view data for these timeframes.

Telegram Support

Hi , is it possible to add telegram support , so we can share this analysis to Telegram group or channel ?

Thanks

Add documentation to the sup-res

As we continue to work on this project, it's important that we have clear and concise documentation to help us understand the project's purpose, features, and usage. Documentation can also help onboard new contributors and make it easier for others to contribute.

Help me, please!

Help, please, to solve a problem.
Before everything started and worked like clockwork. The last 2 weeks gives an error and I don't know how to overcome it... Perhaps you can tell me how?
БСзымянный

Add Binance.US API

Problem

We need to integrate with the Binance.US API to retrieve and update cryptocurrency information.

Solution

We can add integration with the Binance.US API to our application by using their API and SDK.
https://docs.binance.us/#introduction

Expected outcome

Our application will be able to retrieve and update cryptocurrency information from Binance.US.

Telegram bot

Hi ,

after testing the telegram bot , everything working great for the bot except the command - supres -

supres btcusdt 1d

this command doesnt work and i get error

( caused error [Errno 2] No such file or directory: 'py telegram_bot.py BTCUSDT 1D' )

no pinescript ubuntu

After running the script,

Pinescript is not showing.

image

Also "Latest Candlesticks is not showing in chart"
image

I shall install it on Windows tomorrow, let you know.

Thanks again for the great support

Add Coinbase API

Problem

We need to integrate with the Coinbase API to retrieve and update cryptocurrency information.

Solution

We can add integration with the Coinbase API to our application by using their API and SDK.
https://docs.cloud.coinbase.com/exchange/docs/welcome

Expected outcome

Our application will be able to retrieve and update cryptocurrency information from Coinbase.

accept a csv file of coins to create chart

I would love to see this project updated to where it has the option to accept a csv file that has the coin name and timeframe to create the chart automatically, instead of having to enter one at a time.

ImportError import historical_data, 'Client' from 'binance'

Hello,
Trying to run python main.py, I got this errors, any solution ?

PS C:\Users#####\Desktop########\sup-res-master> python main.py
Traceback (most recent call last):
File "sup-res-master\main.py", line 9, in
import historical_data
File "sup-res-master\historical_data.py", line 4, in
from binance import Client
ImportError: cannot import name 'Client' from 'binance' (C:\Python39\lib\site-packages\binance_init_.py)

image

frame.append

hi again,

love your work again!

look.
The frame.append method is deprecated and will be removed from pandas in a future version

greets
Remco

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.