Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KDJ无法绘制,已经确定最高价、最低价、开盘、收盘 都是有值的 #12

Closed
Parkour-zhou opened this issue Jan 8, 2018 · 11 comments

Comments

@Parkour-zhou
Copy link

Parkour-zhou commented Jan 8, 2018

2018-01-08 20:22:33.102861+0800 LiangKe[1195:430743] [Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
screen shot 2018-01-08 at 8 23 25

@MarcWeigert
Copy link
Owner

所有的KDJ都是这样么?

@JhonnyRtd
Copy link

JhonnyRtd commented Jan 9, 2018

对的,我的KDJ也是
一直报这样一个错:[Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.

运行一会就崩了

@MarcWeigert
Copy link
Owner

可能是lua脚本语言与oc语言基本类型转换错误。最好提供给我一个稳定重现的demo来排查。

@Parkour-zhou
Copy link
Author

Parkour-zhou commented Jan 9, 2018

@MarcWeigert 您好,demo我准备好了,麻烦了,谢谢哈
GGCharts-KDJerror.zip

@MarcWeigert
Copy link
Owner

改好了, 更新最新代码就可以了。如果线吗发直接把 kdj.lua替换了就好。

@Parkour-zhou
Copy link
Author

@MarcWeigert 好的,麻烦了

@MarcWeigert
Copy link
Owner

问题关了吧。

@Parkour-zhou
Copy link
Author

@MarcWeigert 刚更新了kdj.lua,clean,并删除工程,重新编译打包 ,还是报一样的问题,然后用发你的demo工程试了下,也是一样的,
2018-01-11 09:16:22.222412+0800 GGCharts[25494:3751986] [Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
2018-01-11 09:16:22.222674+0800 GGCharts[25494:3751986] [Unknown process name] If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.

@MarcWeigert
Copy link
Owner

最新的kdj 用你的demo 没出现问题了啊

@Parkour-zhou
Copy link
Author

Parkour-zhou commented Jan 12, 2018

2018-01-12 10 31 03
你好像只做了判断 ,没做其他处理,可能是忘了没有提交上来吧

我自己修改了,现在可以了

   if (d == 0) then
    rsvArray[i] = {rsv = 50}
    else
    rsvArray[i] = {rsv = (aryList[i][getCloseMethod] - funcLLV(i)) / (funcHHV(i) - funcLLV(i)) * 100}

    end

@tuluigi
Copy link

tuluigi commented Jul 17, 2018

@MarcWeigert 是在d =0时候没有做 rsvArray[I]=50;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants