Skip to main content

A python library for Technical Trading

Project description

Technic

A trading technical analysis library for python.

Dependencies

  1. pandas
  2. numpy

Install

pip install technic

Supported Technical Functions

Indicator Status
SMA DONE
EMA DONE
RSI DONE
ATR DONE
STD DONE
MACD DONE
BOLLINGER BANDS DONE
KELTNER CHANNELS DONE
SQUEEEZE COMING SOON
STOCHASTIC OSCILLATOR COMING SOON

Examples

import pandas as pd
import technic as ta



csv_file = 'PATH_TO_YOUR OHLCV CSV DATA'

# Dataframe containing OHLCV data
df = pd.read_csv(csv_file)


# SMA
sma = ta.tsma(df['close'], 50)

# EMA
ema = ta.tsma(df['close'], 10)

# RSI
rsi = ta.trsi(df['close'], 14)

# ATR
atr = ta.tatr(df['close'], df['high'], df['low'], w=21)

# MACD
df_macd = ta.tmacd(df['close'], w_slow=26, w_fast=12, w_signal=9)

# Bollinger Bands
df_bbands = ta.tbollingerbands(df['close'], w=21, std_multiplier=2)

# Keltner Channels
df_kelt = ta.tkeltnerchannels(df['close'], df['high'], df['low'], w=21, atr_multiplier=2)

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

technic-0.0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

technic-0.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file technic-0.0.3.tar.gz.

File metadata

  • Download URL: technic-0.0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for technic-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c7a73c2d266066dd8aad2dd48897cbf63c2a435121b2cc07a9fe17cc91a9bfea
MD5 cb04ad0697de2d5462629fbb94f16bb2
BLAKE2b-256 c3bc2149a0eb4d2a1ad7f3c67ed806b92010c4339f8dd53708e179f19ba1126d

See more details on using hashes here.

File details

Details for the file technic-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: technic-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for technic-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8587258802fae98ac375494d2db9d90e661754aae40a0937a11b2c3690748865
MD5 3fa05b3217da431a8e36818a9865418f
BLAKE2b-256 cdba0422eeff94a5613d1e8809e8d1c92c2cb2abf26b587aa452f3e42e5b26b4

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