Skip to main content

A tool to predict when to buy or sell stocks

Project description

# cuansignal: Signal Indicator to Buy / Sell Stock

Bismillaahirrahmaanirrahiim.

cuansignal is a library that contains several functions to predict and provide signals to buy and sell stocks. There are several indicators included in this library. In the initial version, there are four functions, namely Double Exponential Moving Average, Bollinger Band, Stochastics and Relative Strength Index. More functions will be added in the next edition. We welcome input and critics.

### Double Exponential Moving Average (dEMA)

cuansignal.dEMA(df, base, short, long)

>>> import yfinance as yf
>>> from cuansignal import signals as cs
>>> data = yf.download('AAPL', start='2018-01-01', end='2020-08-01')
>>> result = cs.dEMA(data, base='Close', short=10, long=100)

### Bollinger Band (bband)

cuansignal.bband(df, base, period, std)

>>> import yfinance as yf
>>> from cuansignal import signals as cs
>>> data = yf.download('AAPL', start='2018-01-01', end='2020-08-01')
>>> result = cs.bband(data, base='Close', period=30, std=2)

### Relative Strength Index

cuansignal.rsi(df, base, EMA, MA, RSI)

>>> import yfinance as yf
>>> from cuansignal import signals as cs
>>> data = yf.download('AAPL', start='2018-01-01', end='2020-08-01')
>>> result = cs.rsi(data, base='Close', EMA=11, MA=200, RSI=30)

### Stochastics

cuansignal.stoch(df, period, period2, high, low)

>>> import yfinance as yf
>>> from cuansignal import signals as cs
>>> data = yf.download('AAPL', start='2018-01-01', end='2020-08-01')

Change Log

1.0.0 (18/08/2021)

Adding four indicators : 1. Dual Exponential Moving Average (dEMA) 2. Bollinger Band (bband) 3. Relative Strenght Index (rsi) 4. Stochastic (stoch)

Project details


Download files

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

Source Distribution

cuansignal-1.1.2.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file cuansignal-1.1.2.tar.gz.

File metadata

  • Download URL: cuansignal-1.1.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8

File hashes

Hashes for cuansignal-1.1.2.tar.gz
Algorithm Hash digest
SHA256 d660dfe4a221d8d36c34d2656d3af71bfd9355626e2229b2d7cf5adb6d93ab2f
MD5 440255f13f1b61ee8b32badc773bbb21
BLAKE2b-256 34ab5a383415f6852bfe34ca3e1a5f2baef33251b16615d0bbfe2a0c29cb5d5e

See more details on using hashes here.

Supported by

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