GithubHelp home page GithubHelp logo

kingofhawks / stocktrace Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 148.27 MB

stock market analysis

Python 3.38% HTML 15.59% CoffeeScript 0.03% CSS 7.03% JavaScript 71.32% Ruby 0.01% Shell 0.01% Less 1.90% SCSS 0.48% Sass 0.25%
python3 stock-analysis stock-market

stocktrace's People

Contributors

kingofhawks avatar rex1207 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stocktrace's Issues

cache

1.memcached support
2.check with redis

run schedule should not touch mongodb

when run realtimemonitorschedule.py will throw error:
Traceback (most recent call last):
File "E:\Dropbox\Workspace\stocktrace\src\cron\realtimemonitorschedule.py", line 23, in
start();
File "E:\Dropbox\Workspace\stocktrace\src\cron\realtimemonitorschedule.py", line 14, in start
from parse.sinaparser import getMyStock
File "E:\Dropbox\Workspace\stocktrace\src\parse\sinaparser.py", line 84, in
def downloadLatestData(quotes = findAllExistentTickers(),engine='sina'):
File "E:\Dropbox\Workspace\stocktrace\src\dao\stockdao.py", line 273, in findAllExistentTickers
connection = Connection()
File "D:\Program Files\Python27\lib\site-packages\pymongo\connection.py", line 303, in init
self.__find_node(seeds)
File "D:\Program Files\Python27\lib\site-packages\pymongo\connection.py", line 666, in __find_node
raise AutoReconnect(', '.join(errors))
pymongo.errors.AutoReconnect: could not connect to localhost:27017: [Errno 10061]

stock should support category

1.stock list via 通达信自选
2.category from options:bloomberg/reuters/sse/ifeng, decided to parse from ifeng

deploy on Cloud

1.maybe Heroku/OpenShift/or GAE
2.django deploy with WSGI or other, on other HTTP server such as apache,nginx ,lighttpd etc

Desktop Tray

1.Run when system start up and monitor the specific items
2. show alert when trigger threshold,which will come from rabbitmq as consumer

monitoring module

1.Independent module for polling stock data
2.Threshold support to trigger alarm, store event to rabbitmq as producer.

Message Queue

1.Integrate Rabbit MQ as Queue broker,maybe used by monitoring and alarm components
2.[optional]celery or beantalk/gearman to be used as Task Queue
3. use pika client for rabbitmq

NHNL index

马丁的《技术分析》
约翰墨菲的《金融市场技术分析》
《以交易为生》等书。

NH-NL可以提供三种讯号,按照重要性的顺序说明如下:价格与指标之间的背离,指标的斜率,以及指标高于或低于零线的位置。
只要价格峰位受到NH-NL新高的确认,涨势应该可以继续发展,虽然中间可能夹着折返的走势;当价格低点伴随着NH-NL的新低,空头掌握主导权,下降趋势应该继续发展。NH-NL与大盘指数之间的背离现象,是最理想的交易讯号,丧失领导股的趋势,很可能发生反转。
1、如果大盘指数创新高而NH-NL的峰位下滑,这构成空头的背离。虽然价格创新高,但多头的领导力量减退。空头背离代表上升趋势的结束。如果NH-NL最后一个峰位的读数为+100或以下,可能形成主要的反转,这是放空的机会。如果最后一个峰位的读数远高于+100,则多头的领导者仍然有足够的力量防止价格暴跌。
2、如果大盘指数创新低而NH-NL的谷底垫高,这构成多头的背离。虽然价格创新低,但空头的领导力量减退。空头背离代表下降趋势的结束。如果NH-NL最后一个谷底的读数在-100或以内,代表空头已经耗尽力气,价格可能形成主要的向上反转。如果最后一个谷底的读数远低于-100,则空头的余威犹存,下跌趋势可能暂停,但不会反转。请记住,在股票市场中,底部多头背离的发展速度远快于头部的空头背 离,所以,买进的手脚要很快,卖出可以慢慢来。
NH-NL的斜率是由最近几天的柱状图决定,如果价格上涨而NH-NL向上,这可以确认上升趋势。如果价格与NH-NL同时下降,这可以确认下降趋势。
3、在涨势中,如果NH-NL上升,可以继续持有多头部位或加码。在价格涨势或横向走势中,如果NH-NL下降,短线的多头部位应该获利了结。在跌势中,如果NH-NL下降,代表空头领导权转强,可以继续持有空头部位,甚至加码。如果价格继续下跌而NH-NL回升,下降趋势将有问题----这是回补空头部位的时机。
4、在横向走势中,如果NH-NL上升,这是多头的买进讯号。虽然士兵们仍然在壕沟内准备,但军官们已经冲向山顶。反之,如果NH-NL在横向走势中下降,这是放空讯号,虽然士兵们仍然坚守阵地,但军官们已经纷纷叛逃。士兵们不是傻瓜——如果军官叛逃,他们也不会留下来作战。
NH-NL与零线的位置关系,可以显示多头或空头的相对主导地位。如果NH-NL位在零线之上,代表多头领导者多于空头,最好由多方进行交易。如果NH-NL位在零线之下,代表空头领导者的力量比较强,最好由空方进行交易。在多头行情中,NH-NL可以处在零线以上长达数个月之久。同理,在空头行情中,NH-NL可以处在零线以下长达数个月之久。
5、如果NH-NL的读数维持负值长达数个月,然后向上翻升而穿越零线,可能代表多头走势开始的讯号。在这种情况下,应该寻找买进的机会,透过摆荡指标判断进场的时机。如果NH-NL的读数维持正值长达数个月,然后下滑而穿越零线,代表空头走势开始的讯号。在这种情况下,应该寻找放空的机会,透过摆荡指标判断进场的时机。

REST API

support REST API:
tastypie or django-rest-framework or eve or flask

logging module

1.Need enhance the logging module
2.getLogger by py file
3.Add timestamp

mongodb shard

1.shard on stock_history table
2.try with twitter gizzard

run as system startup

1.run stock polling schedule when system startup
2.[optional]wrapper python to exe via py2exe or pyinstaller
3.wrapper monitor as python module so that could be loaded

screen

1.select quotes on MA(10/20/50/200)
2.[optional]screen on rise/drop in specific days,specific domain etc. last year/this year etc.
3.screen on percent since yearLow or yearHigh from Yahoo
4.[optional]screen on PB
5.[optional]screen on PE
6. need web pages for access screen API
7.screen on percent for current year from Yahoo

mongodb error

When do bulk operations to mongodb,sometimes it will raise error:
could not connect to localhost:27017

MA support

support MA on daily candlestick,which need to support multiple lines on single chart through jqplot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.