vega-frontend-monorepo/specs/6007-CHAR-chart.md
2023-12-12 17:33:41 -08:00

7.0 KiB

Chart

Chart lib type

  • Must be able to view the Vega chart by default
  • Must be able to switch to the TradingView chart
  • Must have the interval persisted between chart types

Pennant chart

Display options

  • Must be able to change time interval from a list of intervals (6007-CHAR-001)
    • 1m
    • 5m
    • 15m
    • 1H
    • 6H
    • 1D
  • Must be able to change display type from a list of display types (6007-CHAR-002)
    • Mountain
    • Candlestick
    • Line
    • OHLC
  • Must icon will change depending on the display type selected (6007-CHAR-003)
    • Mountain
    • Candlestick
    • Line
    • OHLC
  • Must be able to add overlays by selecting from a list of overlays (6007-CHAR-004)
    • Bollinger bands
    • Envelope
    • EMA
    • Moving Average
    • Price monitoring bounds
  • Must be able to add studies by selecting from a list of studies (6007-CHAR-005)
    • Eldar-ray
    • Force index
    • MACD
    • RSI
    • Volume
  • Must be able to add multiple studies at the same time (6007-CHAR-006)
  • Must be able to close any studies selected (6007-CHAR-007)
  • Must be able to add multiple overlays at the same time (6007-CHAR-008)
  • Must be able to close any overlays selected (6007-CHAR-009)

Price and Time

  • Must see details of price from where my mouse cursor is on the chart(6007-CHAR-010)

    • Time (24h)
    • Date (dd/MMM/yyyy)
    • O
    • H
    • L
    • C
    • Change
  • Must see crosshair on the chart where my mouse cursor is(6007-CHAR-011)

  • Must be able to mousewheel scroll to extend/reduce time range(6007-CHAR-012)

  • Must x axis shows time range(6007-CHAR-013)

  • Must y axis shows price range(6007-CHAR-014)

  • Must show the last price line on the Y axis (6007-CHAR-015)

Display Types

Mountain

  • Must show area line chart with the line being at the last price (6007-CHAR-016)

Candlestick

Line

  • Must show line on the chart with the line being the the last price (6007-CHAR-023)

OHLC

Overlays

Bollinger bands

Envelope

EMA

Moving Average

Price monitoring bounds

Studies

Eldar-ray

Force index

MACD

RSI

Volume

TradingView

  • Must persist interval in chart settings
  • Must must show an attribution to trading view