willkyang / yykline Goto Github PK
View Code? Open in Web Editor NEWiOS YYKline:Kline、Chart、Volume、Scroll、Scale、MACD、KDJ、K线图、分时图...
License: MIT License
iOS YYKline:Kline、Chart、Volume、Scroll、Scale、MACD、KDJ、K线图、分时图...
License: MIT License
[kLineModels enumerateObjectsUsingBlock:^(Y_KLineModel * _Nonnull kLineModel, NSUInteger idx, BOOL * _Nonnull stop) {
if(kLineModel.High.floatValue > maxAssert)
{
maxAssert = kLineModel.High.floatValue;
}
if(kLineModel.Low.floatValue < minAssert)
{
minAssert = kLineModel.Low.floatValue;
}
if(kLineModel.MA7)
{
if (minAssert > kLineModel.MA7.floatValue) {
minAssert = kLineModel.MA7.floatValue;
}
if (maxAssert < kLineModel.MA7.floatValue) {
maxAssert = kLineModel.MA7.floatValue;
}
}
if(kLineModel.MA30)
{
if (minAssert > kLineModel.MA30.floatValue) {
minAssert = kLineModel.MA30.floatValue;
}
if (maxAssert < kLineModel.MA30.floatValue) {
maxAssert = kLineModel.MA30.floatValue;
}
}
}];
在Y_KLineMainView.m类里边第430行到460行,有一个if(ABS(closePointY - openPoint.y) < Y_StockChartKLineMinWidth)这样的判断,这个判断是干嘛的?为什么会判断小于柱体的最小宽度呢?在434、437、444、446、454、456行都有加上一个最小宽度的代码,请问为什么要这样写啊?
你好,我现在用了你的这个类,功能是很不错,刚好满足了我们的需求,现在就是内存消耗过大,滑动时,内存溢出而闪退。能否给出个好的方案解决内存消耗过大。。非常感谢,
Hello, I have now used your class, which is very good and just meets our needs. Now, memory consumption is too high. Can you come up with a good solution for excessive memory consumption? Thank you very much.
请问有Android的deom
怎样实现K线图和分时图根据价格变动而动起来
可以提供RSI、WR指标?
求教如何添加最高价和最低价的label
我看了好几天,不是很清楚你的数据从那个加载进去的。我应该在哪儿切换数据~
i tested on iPad mini,iPad Air and iPhone 4s,when scaling the graphics,it can feel obviously not smooth.how to optimize the performance on old devices before iPhone 6?
M1 M5 M30 问题,显示不了
项目很好,建议来个Swift
或者JS
版的.
我下载下来之后,执行后,里面都没有数据,只有一个框架,但是之前行的,是你们改接口了吗?
Y_KLine只支持横屏吗,能支持竖屏吗
服务器返回数据小于7条的时候
弱弱的问下,Y_KLine能支持画:等量K线么?
我想在某个竖直的view里面展示这个k先分时图
切换线图的时候有时候会崩掉。。
你好,请教下Demo中的分时部分应该如何对接均价、现价数据呢?
在Y_KLineMainView.m类里边第430行到460行,有一个if(ABS(closePointY - openPoint.y) < Y_StockChartKLineMinWidth)这样的判断,这个判断是干嘛的?为什么会判断小于柱体的最小宽度呢?在434、437、444、446、454、456行都有加上一个最小宽度的代码,请问为什么要这样写啊?
大神,为什么唯有RSI呢?
请看一下数据,当我选中指标中的选项中时,崩溃
坦白说真的是被这个界面惊艳到了,感觉很专业,但不知道怎么移植到windows上呢
不知道是数据问题还是框架问题,部分kdj图显示nan 请各位指教
请问kline 如何实现接收即时数据动局部动态重绘功能?分时线也是这个问题,试过全屏加载效率太低了。。
第一次http请求到整组数据后,如果后边推来一条一条的数据,想问一下作者如果要做的话怎么去考虑这个实现呢?我目前在自己写,1min的好写,已经处理好了
Y_KLineMainView.m 中,maxAssert *= 1.0001; minAssert *= 0.9991; 这两个变量为什么要这样处理,这样处理会不会有偏差呢?期待您的答案,蟹蟹~
PS:您的demo写得挺不错的,很有收获
内存泄露太严重,手势操作太卡顿,缩放还乱跑。。。,这样的库放上来是来坑人的么?
只能写个Demo看吧,根本不敢用在正式环境,竟然还有1k多个star??
博主,你没发现这些问题么?
求解决或指导
求个安卓版本的,大佬
划动看以前的k线,数据刷新后又到初始位置了,请问该如何解决
想要添加均线
我怎么随意设置默认显示的指标呢
分时图想要固定在一屏的大小,但是始终没有找到解决方法
最近调数据发现问题,如果数据特别大的时候,所有的K线都缩在一个高度上,没有按照KlineMainView的高度去展开,我们现在的数据是160000+,看到的数据都在顶部,下半部分完全没用到,跟踪代码发现是把model转为positionModel时候有问题,正在你的计算方法,改完了我看能不能把代码贴出来吧
项目太赶现用这框架实现了再说,等有时间慢慢研究学习具体细节~
如题
大神你好,请问除了iOS版,有支持其他平台的K线吗?Web, Android, js
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.