hackingthemarkets / candlestick-screener Goto Github PK
View Code? Open in Web Editor NEWweb-based technical screener for candlestick patterns using Python and Flask
web-based technical screener for candlestick patterns using Python and Flask
Hey, nice project. Any clue about that is doing on?
Installing collected packages: MarkupSafe, Jinja2, click, itsdangerous, Werkzeug, flask, numpy, TA-Lib, pytz, six, python-dateutil, pandas, idna, urllib3, chardet, certifi, requests, multitasking, yfinance
Running setup.py install for TA-Lib ... error
ERROR: Command errored out with exit status 1:
command: '/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/bin/python3' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-320a7ast/ta-lib/setup.py'"'"'; file='"'"'/tmp/pip-install-320a7ast/ta-lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-zg71j98o/install-record.txt --single-version-externally-managed --compile --install-headers '/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/include/site/python3.8/TA-Lib'
cwd: /tmp/pip-install-320a7ast/ta-lib/
Complete output (27 lines):
/tmp/pip-install-320a7ast/ta-lib/setup.py:79: UserWarning: Cannot find ta-lib library, installation may fail.
warnings.warn('Cannot find ta-lib library, installation may fail.')
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/talib
copying talib/test_func.py -> build/lib.linux-x86_64-3.8/talib
copying talib/test_pandas.py -> build/lib.linux-x86_64-3.8/talib
copying talib/stream.py -> build/lib.linux-x86_64-3.8/talib
copying talib/abstract.py -> build/lib.linux-x86_64-3.8/talib
copying talib/deprecated.py -> build/lib.linux-x86_64-3.8/talib
copying talib/test_abstract.py -> build/lib.linux-x86_64-3.8/talib
copying talib/test_stream.py -> build/lib.linux-x86_64-3.8/talib
copying talib/test_data.py -> build/lib.linux-x86_64-3.8/talib
copying talib/init.py -> build/lib.linux-x86_64-3.8/talib
running build_ext
building 'talib._ta_lib' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/talib
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/lib/python3.8/site-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/include -I/usr/include/python3.8 -c talib/_ta_lib.c -o build/temp.linux-x86_64-3.8/talib/_ta_lib.o
talib/_ta_lib.c:601:10: fatal error: ta-lib/ta_defs.h: No such file or directory
601 | #include "ta-lib/ta_defs.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: '/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/bin/python3' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-320a7ast/ta-lib/setup.py'"'"'; file='"'"'/tmp/pip-install-320a7ast/ta-lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-zg71j98o/install-record.txt --single-version-externally-managed --compile --install-headers '/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/include/site/python3.8/TA-Lib' Check the logs for full command output.
How did you get pattern_detect.py to work?
TypeError: Argument 'open' has incorrect type (expected numpy.ndarray, got Series)
I think you have to use
num = ta.CDLMORNINGSTAR(data.Open.values,data.High.values,data.Low.values,data.Close.values)
Currently snapshot retrieves data for a fixed time interval.
Would be useful to retrieve data up until the current day.
ImportError Traceback (most recent call last)
in ()
4 import pandas
5 from flask import Flask, escape, request, render_template
----> 6 from patterns import candlestick_patterns
7 import datetime
8
ImportError: cannot import name 'candlestick_patterns' from 'patterns' (/usr/local/lib/python3.7/dist-packages/patterns/init.py)
hi,
i am getting the following error all the sudden. It started 11-09-2021.
Can you please advise? I've checked everything I can online and stackoverflow and tried changing the port to 8000 but still not working.
pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 29, saw 13
127.0.0.1 - - [10/Nov/2021 15:01:40] "GET /?pattern=CDLBREAKAWAY HTTP/1.1" 500 -
great tool, i try implemented to crypto market, but the problem is image chart, can somebody help me, thanks,
sample link chart :
https://www.binance.com/en/futures/BTCUSDT
https://app.tabtrader.com/trading?list=Default&market=BINANCE&pair=BTCUSDT
Hi thank you for your work!
The chart link from finviz is no longer working.
Can you please suggest where we can find another link or the way to vizualize the chart.
Thank you.
Would be nice to be able to refresh the datasets either for a specified symbol, either for the whole list.
Hello,
Is there any way you can add a script so you we can have the report autoemailed to email of our choice at end of every trading day?
Thanks!
First of all, thanks for your great work, really appreciate it !
just one question, how do we detect bull flag though?
not sure if I missed from your tutorial, if did, apologize first... could you please help ?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.