kingofhawks / stocktrace Goto Github PK
View Code? Open in Web Editor NEWstock market analysis
stock market analysis
click "TOP" will return to top page
use absolute file path for logging
1.support color on candlestick graph
2.volume/percent
1.memcached support
2.check with redis
mustache will not be bound to django
MA price is not correct on candlestick graph
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]
1.stock list via 通达信自选
2.category from options:bloomberg/reuters/sse/ifeng, decided to parse from ifeng
Scribe integration
1.maybe Heroku/OpenShift/or GAE
2.django deploy with WSGI or other, on other HTTP server such as apache,nginx ,lighttpd etc
such as mustaches
infinite scroll bug on alist/dlist pages
to simplify the deployment
1.Download history data in effective way
triggerNhNl algorithm is wrong
1.Run when system start up and monitor the specific items
2. show alert when trigger threshold,which will come from rabbitmq as consumer
1.Independent module for polling stock data
2.Threshold support to trigger alarm, store event to rabbitmq as producer.
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
E:\Dropbox\Workspace\stocktrace\src\zytj\views.py in jsonnhnl
line141 s.append(record['date'])
still hit mongodb when re-enter page
alist.html and dlist.html could keep only one
celery or gearman
If no data available for stock,the candlestick page will show blank.
马丁的《技术分析》
约翰墨菲的《金融市场技术分析》
《以交易为生》等书。
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的读数维持正值长达数个月,然后下滑而穿越零线,代表空头走势开始的讯号。在这种情况下,应该寻找放空的机会,透过摆荡指标判断进场的时机。
need to pass parameter for getMyStock()
support REST API:
tastypie or django-rest-framework or eve or flask
1.Need enhance the logging module
2.getLogger by py file
3.Add timestamp
such as all/hold/self selection/top100 etc
ignore Sat/Sun on candlestick graph
rather than run ALL
1.shard on stock_history table
2.try with twitter gizzard
for multi-language support
Sometimes error
http://ichart.finance.yahoo.com/table.csv?s=600066.SS&d=8&e=27&f=2012&a=0&b=01&c=2012
maybe should try
http://www.gummy-stuff.org/Yahoo-data.htm
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
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
When do bulk operations to mongodb,sometimes it will raise error:
could not connect to localhost:27017
1.node.js integration
should not hard code time range for candlestick page
add JS unit test
run findByNhnl() not hit any
1.Global ThreadPool or parallel processing
when run monitor schedule,the win32 service could not stop correctly.
1.should be point
2.add note about which line is MA10 or 20 etc
support MA on daily candlestick,which need to support multiple lines on single chart through jqplot.
should show indicator for buy/sell message
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.