IB's Data feed

Discussion in 'App Development' started by Xraptor, Jul 7, 2016.

  1. Xraptor

    Xraptor

    Gentlemans from the IB please add the callback tickPrice time Stamp! Or will make a new callback kind of LastPrice(double price, string DataTime) as the tickPrice!

    Now this's very bad approach!
     
    #31     Jul 15, 2016
  2. marsman

    marsman

    Just a workaround idea:
    You could add the ticktime yourself immediately when you get the tickPrice...
     
    #32     Jul 15, 2016
  3. Xraptor

    Xraptor

    marsman, it doesn't work see above ...
     
    #33     Jul 15, 2016
  4. marsman

    marsman

    which posting number do you mean?
     
    #34     Jul 15, 2016
  5. marsman

    marsman

    Come on man, it seems you don't know what a bar is. A bar is a consolidation of a timeframe, it can be built only after the barsize in units of time.
    Meaning: you get the bar after the 5 seconds. So, what else do you expect or await?
    FYI: http://www.investopedia.com/terms/b/bar.asp
     
    Last edited: Jul 15, 2016
    #35     Jul 15, 2016
    JackRab likes this.
  6. conduit

    conduit

    Yes correct but they don't. We gotta deal with it. Or else you need to change the data provider.

     
    #36     Jul 16, 2016
  7. Xraptor

    Xraptor

    Interestingly how does working trading platforms? We can't see what is happening inside the code but we can see the IB's log file. I see most of platforms use only HictoricalDate and TickPrice ...
    It's means that they can have a incorrect charts too!
     
    #37     Jul 16, 2016
  8. JackRab

    JackRab

    I don't get the whole issue...

    Firstly... who uses 5sec bars? Really? What are you trying to achieve with 5sec bars?

    If you want to create your own bar, just get the historical data... which has time stamps and then create the new bar with real time data ticks... I don't see how that can be incorrect
     
    #38     Jul 17, 2016
  9. conduit

    conduit

    It does not matter even what he wants to do with it. If he created subsequent bars off the live realtime data snapshots then he could create 1s bars for what it's worth.

    But overall we seem to be on the same page: get the historical bars and then build new ones from real time data.

     
    #39     Jul 17, 2016
    JackRab likes this.