All Projects → day0market → support_resistance

day0market / support_resistance

Licence: other
Small package that helps to find support and resistance levels and plot them on chart

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to support resistance

FAIG
Fully Automated IG Trading
Stars: ✭ 134 (-49.05%)
Mutual labels:  stock-market, trading-algorithms
hmm market behavior
Unsupervised Learning to Market Behavior Forecasting Example
Stars: ✭ 36 (-86.31%)
Mutual labels:  stock-market, trading-algorithms
stockbot
Alpaca algo stock trading bot
Stars: ✭ 105 (-60.08%)
Mutual labels:  stock-market, trading-algorithms
Robin stocks
This is a library to use with Robinhood Financial App. It currently supports trading crypto-currencies, options, and stocks. In addition, it can be used to get real time ticker information, assess the performance of your portfolio, and can also get tax documents, total dividends paid, and more. More info at
Stars: ✭ 967 (+267.68%)
Mutual labels:  stock-market, trading-algorithms
Stock Bot
An application that allows you to design and test your own stock trading algorithms in an attempt to beat the market.
Stars: ✭ 240 (-8.75%)
Mutual labels:  stock-market, trading-algorithms
plutus-algo-backtesting
Algorithmic Trading : A python framework to run backtest on stocks using your own custom algorithmic strategies
Stars: ✭ 28 (-89.35%)
Mutual labels:  stock-market, trading-algorithms
TradingView-Machine-Learning-GUI
Let Python optimize the best stop loss and take profits for your TradingView strategy.
Stars: ✭ 396 (+50.57%)
Mutual labels:  stock-market, trading-algorithms
Pandas Ta
Technical Analysis Indicators - Pandas TA is an easy to use Python 3 Pandas Extension with 130+ Indicators
Stars: ✭ 962 (+265.78%)
Mutual labels:  stock-market, trading-algorithms
Sumzerotrading
A Java API for Developing Automated Trading Applications for the Equity, Futures, and Currency Markets
Stars: ✭ 128 (-51.33%)
Mutual labels:  stock-market, trading-algorithms
Ta Rs
Technical analysis library for Rust language
Stars: ✭ 248 (-5.7%)
Mutual labels:  stock-market, trading-algorithms
Alpaca Backtrader Api
Alpaca Trading API integrated with backtrader
Stars: ✭ 246 (-6.46%)
Mutual labels:  stock-market, trading-algorithms
BigBoard
An Elegant Financial Markets Library Written in Swift
Stars: ✭ 66 (-74.9%)
Mutual labels:  stock-market
finance-news-aggregator
A news aggregator in python, that focuses primarily on business and market news sources.
Stars: ✭ 59 (-77.57%)
Mutual labels:  stock-market
pair-trading-view
Pair Trading View - .NET application for visual analysis of synthetic financial instruments based on statistical models.
Stars: ✭ 45 (-82.89%)
Mutual labels:  stock-market
wolfinch
Wolfinch is your friendly trader Bot written in Python
Stars: ✭ 246 (-6.46%)
Mutual labels:  trading-algorithms
awesome-pinescript
A Comprehensive Collection of Everything Related to Tradingview Pine Script.
Stars: ✭ 563 (+114.07%)
Mutual labels:  trading-algorithms
NSE-Stock-Scanner
National Stock Exchange (NSE), India based Stock screener program. Supports Live Data, Swing / Momentum Trading, Intraday Trading, Connect to online brokers as Zerodha Kite, Risk Management, Emotion Control, Screening, Strategies, Backtesting, Automatic Stock Downloading after closing, live free day trading data and much more
Stars: ✭ 78 (-70.34%)
Mutual labels:  stock-market
intrinio-realtime-java-sdk
Intrinio Java SDK for Real-Time Stock Prices
Stars: ✭ 22 (-91.63%)
Mutual labels:  stock-market
Pi-Trader
A cryptocurrency day-trading bot for Raspberry Pi.
Stars: ✭ 44 (-83.27%)
Mutual labels:  trading-algorithms
TradeByte
💸 TradeByte - Stocks Trading Simulation WebApp
Stars: ✭ 30 (-88.59%)
Mutual labels:  stock-market

PriceLevels

Small package that helps to find support and resistance levels and plot them on chart

Levels on candlestick chart

Levels on zig zag chart

Requirements

  • python 3.6+
  • matplotlib, pandas, numpy, zigzag, scikit-learn

(For full dependency list check requirements.txt)

Installation

python setup.py install

How it works?

Algorithm uses AgglomerativeClustering to find levels from pivot points. There are 2 different implementations

  • ZigZagClusterLevels
  • RawPriceClusterLevels

First one use zigzag pivot points and the second one use all high/low prices as pivot points.

Usage example:

   data = get_quotes_from_fixture()
   pl.fit(data.iloc[-100:])
   levels = pl.levels

fit method expected to have pandas.DataFrame object with columns Open, High, Low, Close or 1d numpy.array of prices you want to use to generate levels

Please check examples first :)

ZigZagClusterLevels

Init args:

  • peak_percent_delta - Min change for new pivot in ZigZag
  • merge_distance/merge_percent - Max distance between pivots that can be merged into price level. Comes from AgglomerativeClustering. Only one of those args should be specified, another should be set to None
  • min_bars_between_peaks - filter pivots that occurs less than specified number of bars
  • peaks (default='All'). Specifies which pivot prices to take. All, High, Low values expected here.
  • level_selector(default='median') How to define level from pivots. Options: mean and median

RawPriceClusterLevels

Init args:

  • merge_distance/merge_percent - Max distance between pivots that can be merged into price level. Comes from AgglomerativeClustering. Only one of those args should be specified, another should be set to None
  • level_selector(default='median') How to define level from pivots. Options: mean and median
  • use_maximums(default=True) which prices to use.
  • bars_for_peak(default=21) take only bars that is high or low across specified number of bars

other stuff


Visualization

expected usage:

from pricelevels.visualization.levels_on_candlestick import plot_levels_on_candlestick
plot_levels_on_candlestick(df, levels, only_good=False, path=pth)

from pricelevels.visualization.levels_with_zigzag import plot_with_pivots
plot_with_pivots(df['Close'].values, levels, zig_zag_percent)

Level scoring

Put some score if price touch, cut or pivot near selected levels. Better levels have higher score. It works slowly, so probably you don't want to use it. This idea came from https://stackoverflow.com/questions/8587047/support-resistance-algorithm-technical-analysis

Many parameters, so please check source code.

Usage:

from pricelevels.scoring.touch_scorer import TouchScorer
scorer = TouchScorer()
scorer.fit(levels, df.copy())
print(scorer.scores)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].