Code Monkey home page Code Monkey logo

crypto-bssignals's Introduction

Cryptocurrency Buy/Sell Signals

This project generates buy and sell signals for cryptocurrencies using various financial indicators. The script is designed to work with the Binance exchange but can be adapted to work with other exchanges.

Script Description

The script defines a function datapre(), which fetches historical price and volume data for a specified cryptocurrency pair from the Binance exchange, calculates various trading indicators, and generates trading signals based on these indicators.

The function takes four arguments:

  • exchange: the exchange API (ccxt.binance())
  • symbol: the symbol of the trading pair (e.g., 'BNB/USDT')
  • intervals: the time intervals for the historical data (e.g., '1h')
  • bars: the number of bars to fetch (e.g., 2000)

The script calculates the following trading indicators and signals:

  • Fibonacci levels
  • Stochastic Oscillator (STOCH)
  • On-Balance Volume (OBV)
  • Chaikin Money Flow (CMF)
  • Bollinger Bands (BBANDS)
  • Ichimoku Cloud
  • Moving Averages (MA)
  • Moving Average Convergence Divergence (MACD)
  • Relative Strength Index (RSI)
  • Williams %R (WT)
  • Commodity Channel Index (CCI)
  • Average Directional Movement Index (ADX)
  • Keltner Channel (KC)

Prerequisites

  • Python 3.8
  • pandas
  • numpy
  • talib
  • ta
  • ccxt

Installation

  1. Install the dependencies:
    pip install pandas numpy TA-Lib ta ccxt
    

Usage

You can use the datapre() function as follows:

# Import the ccxt library
import ccxt

# Initialize the Binance exchange API
exchange = ccxt.binance()

# Define time intervals for predictions
intervals = '1h'
bars = 2000

# Define the symbol to trade
symbol = 'BNB/USDT'

# Call the function with the defined parameters
df = datapre(exchange, symbol, intervals, bars)

Disclaimer

This script is for informational purposes only and should not be considered as investment advice. Always do your own research before making any investment decisions. Further information you can check:

crypto-bssignals's People

Contributors

tzelalouzeir avatar

Stargazers

 avatar

Watchers

 avatar

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.