moonnejs / uikline Goto Github PK
View Code? Open in Web Editor NEWUI Tool for KLine Displaying
License: MIT License
UI Tool for KLine Displaying
License: MIT License
PySide-1.2.4.tar.gz (9.3MB)
Complete output from command python setup.py egg_info:
only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]
Hope it will be upgrade to support PyQt5.
[email protected]
Wechat:28888502
blas 1.0 mkl defaults
ca-certificates 2021.1.19 haa95532_0 defaults
certifi 2020.6.20 pyhd3eb1b0_3 defaults
cycler 0.10.0 py27h59acbbf_0 defaults
enum34 1.1.6 py27_1 defaults
funcsigs 1.0.2 py27h8885ae1_0 defaults
icc_rt 2019.0.0 h0cc432a_1 defaults
intel-openmp 2020.2 254 defaults
jpeg 8d vc9_2 defaults
libpng 1.6.37 h7a46e7a_0 defaults
libtiff 4.0.6 vc9_2 defaults
llvmlite 0.20.0 py27_0 defaults
matplotlib 1.5.1 np110py27_0 defaults
mkl 2020.2 256 defaults
mkl-service 2.3.0 py27h0b88c2a_0 defaults
numba 0.35.0 np110py27_0 defaults
numpy 1.10.1 py27_0 defaults
openssl 1.1.1e h0c8e037_0 defaults
pandas 0.18.1 np110py27_0 defaults
patsy 0.5.1 py27_0 defaults
pip 19.3.1 py27_0 defaults
pyparsing 2.4.7 pyhd3eb1b0_0 defaults
pyqt 4.11.4 py27_7 defaults
pyqtgraph 0.9.10 py27_1 defaults
python 2.7.13 1 defaults
python-dateutil 2.8.1 pyhd3eb1b0_0 defaults
pytz 2021.1 pyhd3eb1b0_0 defaults
qt 4.8.7 vc9_6 defaults
qtpy 1.9.0 py_0 defaults
scipy 0.16.0 np110py27_0 defaults
seaborn 0.9.0 py27_0 defaults
setuptools 44.0.0 py27_0 defaults
singledispatch 3.6.1 pyhd3eb1b0_1001 defaults
sip 4.18 py27_0 defaults
six 1.15.0 pyhd3eb1b0_0 defaults
statsmodels 0.6.1 np110py27_1 defaults
tk 8.5.18 vc9_0 defaults
vc 9 h7299396_1 defaults
vs2008_runtime 9.00.30729.1 hfaea7d5_1 defaults
vs2015_runtime 14.27.29016 h5e58377_2 defaults
wheel 0.36.2 pyhd3eb1b0_0 defaults
wincertstore 0.2 py27hf04cefb_0 defaults
zlib 1.2.11 h3cc03e0_3 defaults
真的很棒 虽然只有uiKline.py能运行
@moonnejs ,您好
K线图实现向您请教下如下问题,
1、您现在这个程序包中,是否可以实现多个K线图标的的数据叠加?
如果可以实现,恳请指导下具体修改哪几个关键地方?谢谢!
2、目前您了解的是否有可实现这部分的例子可供参考?恳请推荐下能够完整这部分功能的范例,恳请推荐下能够完成这部分功能的视频学习资料,谢谢!
实现效果图如下:
恳请百忙中指导下,非常感谢!
uiKLineTool.py文件的
print u'正在准备回测结果数据....'
self.canvas.clearData()
self.pdBars = data[['open','close','low','high','volume','openInterest']]
self.canvas.loadData(self.pdBars)
self.canvas.updateSig(self.signals)
后面插入一行
self.canvas.refreshAll()
就可以了
安装了PyQT5和PySide,运行uiKLine.py正常,但是运行uiKLineTool.py没有界面出现,直接退出:
C:\Python\Python36\lib\site-packages\qtpy_init_.py:211: RuntimeWarning: Selected binding "pyqt" could not be found, using "pyside"
'using "{}"'.format(initial_api, API), RuntimeWarning)
Process finished with exit code -1073740791 (0xC0000409)
uiKLine.KLineWidget.onBar():十字光标无法显示新增bar的数据
代码重现:
if name == 'main':
app = QApplication(sys.argv)
# 界面设置
cfgfile = QtCore.QFile('css.qss')
cfgfile.open(QtCore.QFile.ReadOnly)
styleSheet = cfgfile.readAll()
styleSheet = unicode(styleSheet, encoding='utf8')
app.setStyleSheet(styleSheet)
# K线界面
ui = KLineWidget()
ui.show()
ui.KLtitle.setText('rb1701',size='20pt')
data = pd.DataFrame.from_csv('data.csv')
ui.loadData(data)
ui.refreshAll()
data['datetime'] = data.index
# data
ui.onBar(data.iloc[len(data)-10])
ui.onBar(data.iloc[len(data)-9])
ui.onBar(data.iloc[len(data)-8])
ui.onBar(data.iloc[len(data)-7])
ui.refreshAll()
app.exec_()
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.