프로젝트
GitHub에서 보기
JTAmos/Trendy
소개
금융 증권의 기술적 분석을 위한 수치 추세선 알고리즘입니다.
비즈니스 및 금융측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originaltrendy
Numerical trendline Python algorithms for technical analysis of financial securities.
Installation
- Clone or download the ZIP file and unpack.
- Go to the unpacked directory and copy to your Python path. Alternatively, you can place the trendy.py file in an easily reachable directory and import into your current working Python environment with
execfile('/path/to/trendy.py')
or
import trendy
I am still working on getting this project hosted on the Python Package Index, but for now this at least enables you to start using and gaining familiarity with the algorithms.
Examples
Once the files have been imported, you can implement them with simple function calls. Here are some examples.
# Download Apple price history and save adjusted close prices to numpy array
import pandas.io.data as pd
x = pd.DataReader("AAPL", "yahoo")['Adj Close']
# Make some trendlines
import trendy
# Generate general support/resistance trendlines and show the chart
# winow < 1 is considered a fraction of the length of the data set
trendy.gentrends(x, window = 1.0/3, charts = True)
# Generate a series of support/resistance lines by segmenting the price history
trendy.segtrends(x, segments = 2, charts = True) # equivalent to gentrends with window of 1/2
trendy.segtrends(x, segments = 5, charts = True) # plots several S/R lines
# Generate smaller support/resistance trendlines to frame price over smaller periods
trendy.minitrends(x, window = 30, charts = True)
# Iteratively generate trading signals based on maxima/minima in given window
trendy.iterlines(x, window = 30, charts = True) # buy at green dots, sell at red dots
관련 프로젝트 살펴보기
불러오는 중…