Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    lovecoder
    @ccodelover
    Thanks for your replay.
    I'll try to fix my issue.
    But I see I 'll need your help in the future.
    Best regard.
    Plox
    @PloxCake_twitter
    Hey, is there any way to get the "zoom level" from an overlay? I'd like to have my overlay font text size relative to the zoom level, so the font size is bigger when zoomed in and smaller when zoomed out, is this possible?
    Code's All Right ™
    @C451
    @PloxCake_twitter there is no zoom level var, but you can estimate it using A coefficient:
    https://github.com/tvjsx/trading-vue-js/tree/master/docs/api#layout-object
    And the number of candles $props.sub
    Plox
    @PloxCake_twitter
    Cheers that worked :) Used this method if anyone else is interested:
    marker_label_font() {
    return (this.$props.layout.A / 3000 * -1) + 'px Arial'
    }
    Code's All Right ™
    @C451
    rayhanhorn
    @rayhanhorn
    0x5A74261E5E82Ec5cEFeE72fE86D6d2e502502A84
    Akila Thiwanka
    @akjcodes

    Hey, 👋 I recently started to use Tradingvue js library for a project. But I'm having a problem with pin positions. They're not getting updated upon adding "offchart" overlay. Maybe I need to re-calculate the position of the pin. But not sure how it's done. Looking for help to fix this issue. 🙏

    alt
    alt

    pahlot
    @pahlot
    Hi all, love the library! Just wondering if there is any way to calculate data based on what ever data is currently displayed? i.e. If I Zoom in and show 10/100 bars, I want to calculate only the average price for the 10 bars being displayed.
    Code's All Right ™
    @C451
    @pahlot Hi, yes, basically that's what overlays do (using only the current chunk)
    Scripts will also support ranges later
    Swoorup Joshi
    @Swoorup
    how to get something like this?
    Code's All Right ™
    @C451
    @Swoorup a custom overlay can solve this
    Swoorup Joshi
    @Swoorup
    hmm
    Might try this weekend.
    Akila Thiwanka
    @akjcodes
    hello 👋 Is there any way that I can programmatically change the height of offchart canvas(s). Trying to build height adjustment similar to tradinview
    Code's All Right ™
    @C451
    @akjcodes test 9 . Not kidding, the examples really contain a lot of knowledge
    Akila Thiwanka
    @akjcodes
    @C451 Thanks. After going through the layout.js, I've noticed that we can set custom heights. Somehow I didn't notice it on test9 :D My solution is not super smooth yet but can live it for now. Thanks again for this amazing library 🤘
    Code's All Right ™
    @C451
    @akjcodes yw, in the future should be implemented via extensions. Need to consolidate all experimental stuff before that.
    Akila Thiwanka
    @akjcodes
    @C451 looking forward to see all the great stuff 🎉
    arul67800
    @arul67800
    hi ..any work going on for changing timeframes and indicators from front end like tradingview??
    thanks for contributing this amazing library
    Code's All Right ™
    @C451
    @arul67800 yes I plan something like this, but after the release
    Akila Thiwanka
    @akjcodes
    image.png
    @C451 oh sounds good 🎉 .. 👆 this is what I did so far after going through sample codes @arul67800
    Code's All Right ™
    @C451
    ## [0.8.0] - 2020-10-15
    
    - Timezones (initial support)
    - Extended shader props
    - Show/hide scalebars (via chart-config sizes)
    - Chart section resizing [Ext]
    - Linked charts [Ext]
    - Shift + drag => Measure
    - Various bug kills and memory leak demolitions
    - Scripts: onrange exec, node.js SE exec (opt)
    - Scripts: added support of 'tf', 'range'
    - Updated RangeTool
    - Datasets, very first try
    - 30% build size decrease
    Akila Thiwanka
    @akjcodes
    great 🤩 🎉
    Akila Thiwanka
    @akjcodes
    @C451 appreciate if you can let me know how to enable chart section resizing extension.
    Code's All Right ™
    @C451
    @akjcodes we have a new repo https://github.com/tvjsx/tvjs-xp
    https://github.com/tvjsx/tvjs-xp/blob/main/src/apps/App1.vue is the example you are looking for
    But it is still WIP , have some bugs
    Akila Thiwanka
    @akjcodes
    Thanks lot @C451
    arul67800
    @arul67800
    @C451 Thanks a lot for this amazing piece of art..Im studying this for the past 1 week and wondering how much time you must have dedicated for this..
    @akjcodes Hey..this is what we need..can you tel me how you acchieved this :)
    Code's All Right ™
    @C451
    @arul67800 thanks bro! that's how I describe it for myself "an art project". Bc it's hard to justify 1400 hours that I spent on it otherwise
    Code's All Right ™
    @C451
    Quick study (done entirely in one overlay) : BTC: Day Of The Week Returns
    https://tvjs.io/play/?a=ypwpa1aj
    Today is the most bearish day, but we are holding good so far
    DW_RETURNS.png
    Akila Thiwanka
    @akjcodes

    @arul67800

    1) Timeframes, there's an example here https://github.com/tvjsx/trading-vue-js/blob/master/test/tests/Timeframes.vue
    In that example, data is getting from a json file. But in my app, I'm getting data from Binance API for testing.

    2) You can create indicators such as SMA, EMA, BB, Stoch... using custom overlays. You can find a collection of indicator overlays made by the TradingVueJs community here https://github.com/tvjsx/tvjs-overlays
    Then use Datacube add method to add an indicator to the chart. https://github.com/tvjsx/trading-vue-js/tree/master/docs/datacube#add-side-overlay

    arul67800
    @arul67800
    hello everyone, i did my strategies and backtesting in python..how to vizualize the code in python here ..any idea
    in short i need a python backend and vue.js frontend
    @akjcodes Thank you sir, im trying this
    @C451 We are very grateful for this sir...This product would be a superhit soon
    arul67800
    @arul67800
    @akjcodes can you elaborate how you connected the websockets api instead of data.json?
    Akila Thiwanka
    @akjcodes

    @arul67800 Not sure which stream you're planning to use, but you can get an idea from this demo https://github.com/tvjsx/trading-vue-js/blob/master/test/tests/DataHelper.vue

    Or you can try socket.io if you're building your own stream

    BTW I'm a product designer, I do web developing when I'm free. So, I'm not the best one to get advice 😊 So, maybe there are more options other than socket.io
    Code's All Right ™
    @C451
    @arul67800 yeah, for now the only way to connect js to py is to use some kind of -sockets (I use unix-, but it's easier to go with web- ). Basically you need to make python server with REST api and use it in vue.js
    arul67800
    @arul67800
    i think flask-restful api will do the job
    but can you give some ideas to make it happen
    arul67800
    @arul67800
    @C451 im working on it and will revert back to you..