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 hashes)

Uploaded Source

Supported by

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