Skip to main content

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

Release files for cuansignal 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cuansignal 1.1.2
File Size Uploaded
cuansignal-1.1.2.tar.gz 5.9 kB Details

Release files / cuansignal-1.1.2.tar.gz

Download URL cuansignal-1.1.2.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d660dfe4a221d8d36c34d2656d3af71bfd9355626e2229b2d7cf5adb6d93ab2f
BLAKE2b-256 checksum
How to use checksums
34ab5a383415f6852bfe34ca3e1a5f2baef33251b16615d0bbfe2a0c29cb5d5e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.2 This release

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page