pikers / piker

(e2e) foss trading for non-tinas
GNU Affero General Public License v3.0
103 stars 17 forks source link

Trade ratez #268

Closed goodboy closed 2 years ago

goodboy commented 2 years ago

WIP displaying overlayed "flow rates" on top of our volume fsp subchart 😎

Basically the idea here is to plot measure flow in windowed metric terms to give a view into HFT activity as well as compare rates across instruments/markets.

Currently we're displaying the values provided verbatim by IB ticks 294 & 295 which afaik are also available to be used in their advanced scanner and its API accessible params.

We're currently accessing these ticks via the pre-packing which ib_insync does in their Ticker type.

For reference on what each metrics is onstensibly measuring:


TODO:

goodboy commented 2 years ago

So another thing I been meaning to try is to actually show all the ticks for line curves (since we can technically due to the view domain being float) -> so in theory we can actually have step-wise sampling and in each step a psue-do continuum of float data points. We'll just need a rounding algo for which points go on which step 😂

will probably make a follow up issue for this. TL;DR is that basically instead of the "current" step line losing info by it's last value constantly being overwritten - like in OHLC) we can actually draw those value inside the sample step range and then not lose that data graphically or* in the timeseries.

goodboy commented 2 years ago

Gah there's still an annoying thing where the history will be wiped out on history prepend..i guess i'll just put that in a new PR since it'll probably have more to do with refinements that come with #279.