Skip to content

Improve finance demo #4483

@swharden

Description

@swharden

This issue tracks short term goals to improve financial charting resulting from a discussion today with @quantfreedom and @VladislavPustovarov

Task 1: Scott

  • Improve cursor tracking (show labels, snap to bars, etc.)
  • Improve performance for very large numbers of bars (50,000)
  • Simplify the process of automatic vertical scaling. Use strategy pattern to allow multiple scaling strategies including custom ones injected by the user. It is already a function that can be created by the user and assigned to the ContinuousAutoscaleAction action so creating additional classes is not required.
  • Add something like "GetOhlcNearest(x)" to simplify mouse snapping
  • Improve tick behavior when windows are resized. Mimic TradingView.com where ticks "slide" off the screen to the left but do not change in density as the window is resized

Task 2: Vlad

  • Add more views by creating classes in the TickGenerators/Financial namespace (suggested views are listed below)
  • Improve the logic used to decide which view is best given the figure size and axis limits
YearOnly - Year
YearAndJuly - Year, July
YearAnd2Months - Year, May, Sep
YearAnd3Months - Year, Apr, Jul, Oct
YearAnd4Months - Year, Mar, May, Jul, Sep, Nov
Months - Year, then each month
MonthAndThirdMonday - months are short names, days are the number
MonthAndEveryMonday - months are short names, days are the number
MonthAndEveryOtherDay - months are short names, days are the number
MonthAndEveryDay - months are short names, days are the number
DayAndEvery12Hours - show the day number for midnight, then show 6, 12, 18
DayAndEvery4Hours
DayAndEvery3Hours
EveryHour
EveryHalfHour
Every15Minutes
Every5Minutes
EveryMinute
Seconds45
Seconds30
Seconds15
Seconds10
Seconds5
Seconds1

Task 3: Scott

This work will be performed after Vlad finishes the date work above

  • Add lower limit to ensure ticks don't get smaller than candles
  • Add volume bars to the demo
  • Add additional "subplots" showing technical indicators to the demo
  • Refine pan/zoom so candles aren't cut in half horizontally
  • Improve support for charts that have candles of different widths
  • Add grid feature as shown in this comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions