Building an Asset Ticker Panel with Logos and Interactive Symbol Switching
Summary
This article extends a basic real-time ticker panel by adding asset images, richer quote labels, and click-to-open chart behavior. It describes encapsulating bitmap display in a class so image handling can later be changed independently, and expanding text controls to format strings and prices with suitable colors and suffixes. The panel presents the symbol, daily change, direction cue, and latest quote alongside an identifying image.
Object names encode the associated symbol, allowing click events to identify the selected asset and request a chart switch while managing its Market Watch selection. The article explains that alternate image formats or transparency require a different image implementation, and missing bitmap files may leave blank space because load errors are not handled. The chart opens at the existing timeframe, and displaying many symbols can take time; after chart or timeframe changes, the panel restarts at the first listed asset. The material focuses on interface implementation rather than trading signals or performance evidence.
Key ideas
- A dedicated image class hides bitmap-specific behavior and makes it easier to substitute another image implementation.
- Text controls can display symbols or formatted prices and choose colors based on price direction.
- Encoded object names let click events identify an asset and switch the chart to it.
- The chart switch keeps the current timeframe, while large symbol lists may slow panel redraws.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.