Code Monkey home page Code Monkey logo

Comments (5)

maxlxq avatar maxlxq commented on August 16, 2024

同问+1

from yykline.

renjiale1214 avatar renjiale1214 commented on August 16, 2024

我做完了,根据时间去判断websocket收到的数据的时间戳,和当前GlobalModel里的数据最后一条去对比,如果应该是刷新的,就替换最后一条数据,如果是要添加新数据,就在最后再加一条,然后调用setNeedDisplay去刷新就可以了。需要注意的是根据你请求的K线时间不同,1min的,30min的这些判断方式是不一样的,每一种K线都有一个判断逻辑,1week的比较麻烦,我简化了判断直接判7天,后台每根周线的时间戳都是周一的0点0分,所以好判断很多

from yykline.

Mayxueyin avatar Mayxueyin commented on August 16, 2024

使用socket之后遇到两个问题,1.添加数据后刷新,回到了最右边状态. 2.KDJ模式下socket拼接的心数据,kdj值都为0,获取不到新的值,请问这两个该怎么解决呢.

from yykline.

19940524 avatar 19940524 commented on August 16, 2024

使用socket之后遇到两个问题,1.添加数据后刷新,回到了最右边状态. 2.KDJ模式下socket拼接的心数据,kdj值都为0,获取不到新的值,请问这两个该怎么解决呢.

添加数据后刷新,回到了最右边状态,这个问题请教下,解决没有

from yykline.

qingyongone avatar qingyongone commented on August 16, 2024

怎么弄的你们弄好了吗

from yykline.

Related Issues (20)

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.