`pp` indicators in sidepanel UX
goodboy opened this issue · 2 comments
In #223 we land multi-account support per brokerd
an now support position display and orders over multiple broker accounts on the same order mode for a chart.
Some lingering UX questions and options i had thought of include how to display the state of which accounts both are loaded and live - ready for order submissiong, as well as which of those accounts have existing positions per symbol and can we show this succinctly both in the search view and the account selection view.
Some ideas:
- always load all accounts defined (per broker) in
brokers.toml
and show anx
graphic beside accounts entries which weren't loaded/connected to indicate that switching to these will be a no-op- one way to show invalid accounts per instrument would be an icon on the drop down view which should self-explain that selection will be a noop?
- or only load accounts that can be currently used/connected for the symbol.
- and add a refresh control that would allow (re)loading accounts incrementally (say after starting some remote
brokerd
)- will likely come with #197
- and add a refresh control that would allow (re)loading accounts incrementally (say after starting some remote
- once you have a loaded account, show a small
pp
triangle markeror dot graphicbeside each account that has an existing position (possibly in green/red to indicate pnl polarity)- can likely do this with icons next to each entry; i'm thinking similar to our pp line markers?
- hacked this with built-in icons, see #226
- can likely do this with icons next to each entry; i'm thinking similar to our pp line markers?
In #226 there's 2 un-done bullets that can be used as resources as well.
The current state after that lands is that we have long/short icons (with the same graphic as our level marker for pps) and we're only loading accounts that the brokerd
reports to us on connection to the EMS.
Another thing we should add is the new pp marker icons to entries in our custom search view.
this SO shows that you just use QStandardItem.setIcon()
. we'll prolly want to add a pp
column to the headers as well.
I've been thinking we might actually want to populate a section as well with pps for each brokerd
and just have the feeds be unloaded until a user selects one?