Indicator Chart

Price, RSI and MACD stacked on one time axis with a single crosshair that reports all three panes at once.

Price · RSI · MACD

@spectrumui/indicator-chart
SOLSolana
$245.85−2.27%
Aug 21RSI 54.5MACD 1.97Signal 2.85
SOL Solana — close, RSI and MACD by date
DateCloseRSIMACD
May 24$251.5566.611.21
May 25$252.0266.910.85
May 26$253.0667.610.53
May 27$250.8964.69.99
May 28$254.0866.99.70
May 29$251.2663.09.15
May 30$248.2959.08.37
May 31$252.4162.57.99
Jun 1$250.9460.57.49
Jun 2$248.4957.36.81
Jun 3$247.2555.66.10
Jun 4$244.8652.55.29
Jun 5$242.1549.14.38
Jun 6$240.0846.73.45
Jun 7$240.1446.72.68
Jun 8$240.7347.62.10
Jun 9$239.8446.41.55
Jun 10$240.8348.01.18
Jun 11$242.0550.00.97
Jun 12$245.3755.01.07
Jun 13$244.5153.51.06
Jun 14$242.1149.40.85
Jun 15$247.9157.81.14
Jun 16$246.8956.01.27
Jun 17$247.4256.81.40
Jun 18$249.7459.91.67
Jun 19$244.7351.21.46
Jun 20$238.8843.30.82
Jun 21$239.6244.50.36
Jun 22$242.7549.30.25
Jun 23$245.0052.40.34
Jun 24$243.7650.50.31
Jun 25$237.6442.5-0.21
Jun 26$232.8437.5-0.99
Jun 27$233.0937.9-1.58
Jun 28$231.5636.3-2.14
Jun 29$234.2741.0-2.34
Jun 30$234.0540.7-2.49
Jul 1$234.5841.7-2.53
Jul 2$234.8942.3-2.51
Jul 3$232.0838.5-2.69
Jul 4$229.8735.7-2.98
Jul 5$225.6831.2-3.51
Jul 6$229.0738.0-3.61
Jul 7$233.4845.6-3.29
Jul 8$231.4043.0-3.18
Jul 9$226.8937.8-3.41
Jul 10$222.5833.6-3.90
Jul 11$221.2432.4-4.34
Jul 12$218.3830.0-4.87
Jul 13$214.2926.9-5.55
Jul 14$216.3930.8-5.85
Jul 15$214.1429.0-6.20
Jul 16$219.1237.8-6.01
Jul 17$223.7544.6-5.42
Jul 18$223.6044.5-4.91
Jul 19$228.9251.6-4.03
Jul 20$229.4952.3-3.25
Jul 21$233.4957.0-2.28
Jul 22$232.5655.6-1.57
Jul 23$237.6761.1-0.59
Jul 24$233.7555.4-0.12
Jul 25$231.9953.00.10
Jul 26$228.6248.70.01
Jul 27$232.0152.90.20
Jul 28$234.5755.80.56
Jul 29$241.4062.51.37
Jul 30$243.6764.42.18
Jul 31$241.8661.72.64
Aug 1$245.4064.83.26
Aug 2$244.6763.73.64
Aug 3$248.4967.04.21
Aug 4$249.8568.14.71
Aug 5$247.2263.64.84
Aug 6$246.3362.14.82
Aug 7$245.6861.04.69
Aug 8$245.2160.24.51
Aug 9$246.6561.94.42
Aug 10$246.1660.94.27
Aug 11$242.3453.83.79
Aug 12$246.8459.83.73
Aug 13$250.2663.63.92
Aug 14$248.8461.03.91
Aug 15$245.8555.83.61
Aug 16$249.1659.93.61
Aug 17$246.3455.23.34
Aug 18$243.1850.52.83
Aug 19$242.9750.22.39
Aug 20$243.6851.22.07
Aug 21$245.8554.51.97

Equities

AAPLApple Inc.
$327.58+26.52%
Aug 21RSI 64.0MACD 4.00Signal 5.04
AAPL Apple Inc. — close, RSI and MACD by date
DateCloseRSIMACD
May 24$258.9246.30.50
May 25$256.2141.80.05
May 26$256.1741.7-0.30
May 27$256.2641.9-0.57
May 28$257.1344.1-0.70
May 29$260.5551.7-0.53
May 30$260.8352.3-0.36
May 31$260.2050.8-0.28
Jun 1$258.1946.4-0.37
Jun 2$260.1550.9-0.28
Jun 3$264.9859.90.18
Jun 4$266.9362.80.69
Jun 5$265.8460.11.00
Jun 6$261.6551.20.89
Jun 7$258.6845.90.56
Jun 8$254.6539.9-0.02
Jun 9$259.6448.8-0.08
Jun 10$263.2354.10.16
Jun 11$264.5855.90.45
Jun 12$264.0355.00.63
Jun 13$262.1451.70.62
Jun 14$260.3348.70.45
Jun 15$263.0053.00.53
Jun 16$264.8855.80.74
Jun 17$264.7755.60.88
Jun 18$261.7550.00.74
Jun 19$261.8750.20.64
Jun 20$264.8655.40.78
Jun 21$261.4449.10.62
Jun 22$257.7943.50.19
Jun 23$261.6450.00.16
Jun 24$266.1356.30.49
Jun 25$265.3555.00.68
Jun 26$264.6753.90.77
Jun 27$263.4751.80.74
Jun 28$263.4451.70.70
Jun 29$266.4556.60.90
Jun 30$271.6763.51.47
Jul 1$274.4266.52.11
Jul 2$276.5368.72.76
Jul 3$282.9074.13.75
Jul 4$285.0375.64.65
Jul 5$283.6572.65.19
Jul 6$282.6470.55.47
Jul 7$288.6875.26.11
Jul 8$288.8875.46.56
Jul 9$290.6276.66.98
Jul 10$295.1879.67.59
Jul 11$299.0381.78.29
Jul 12$304.4984.29.18
Jul 13$300.4776.09.45
Jul 14$297.7471.09.34
Jul 15$301.8673.89.47
Jul 16$305.4876.09.76
Jul 17$309.1078.010.16
Jul 18$304.0669.39.95
Jul 19$307.2471.59.93
Jul 20$310.3273.410.05
Jul 21$313.8575.510.31
Jul 22$314.6175.910.46
Jul 23$315.0576.210.49
Jul 24$311.7270.010.13
Jul 25$315.1872.510.00
Jul 26$312.7268.19.60
Jul 27$314.2969.49.29
Jul 28$312.9166.98.84
Jul 29$312.5066.18.35
Jul 30$313.5267.17.96
Jul 31$316.8070.27.82
Aug 1$318.4071.67.75
Aug 2$320.2673.27.75
Aug 3$321.3274.07.75
Aug 4$322.5175.07.76
Aug 5$322.8675.37.70
Aug 6$325.0877.27.75
Aug 7$326.4278.37.80
Aug 8$327.3379.07.83
Aug 9$325.6274.07.62
Aug 10$324.8771.97.32
Aug 11$326.1573.37.09
Aug 12$326.6273.86.88
Aug 13$324.7268.16.48
Aug 14$326.9070.96.26
Aug 15$325.6967.35.93
Aug 16$323.3060.85.41
Aug 17$325.8264.75.14
Aug 18$324.1260.44.73
Aug 19$321.9655.34.19
Aug 20$326.0461.84.04
Aug 21$327.5864.04.00

Manual installation

Prefer to copy by hand? Open the Code tab on any example above and switch to the file you need — every source file is there, not just the demo. Drop them in your project like this:

  • chart-engine.tsxcomponents/spectrumui/charts/chart-engine.tsx
  • indicator-chart.tsxcomponents/spectrumui/charts/indicator-chart.tsx

There is nothing to install — this chart draws its own SVG and imports only @/lib/utils.

Usage

import { IndicatorChart } from '@/components/spectrumui/charts/indicator-chart';

<IndicatorChart data={candles} symbol="SOL" />
  • RSI and MACD are computed from the full series, then sliced — so changing range never restates them.
  • rsi() and macd() are exported if you want the numbers without the chart.

Props

PropTypeDefaultDescription
dataCandle[]SOL_MARKETOHLC series. RSI and MACD are computed from it.
symbolstring'SOL'Ticker shown in the header.
namestring'Solana'Long name beside the ticker.
rangesMarketRange[]MARKET_RANGESRange selector options.
defaultRangestring'3M'Which range is selected on mount.
heightnumber-Plot height in pixels. The header sits above it, so the card is taller than this.
status'ready' | 'loading' | 'empty' | 'error''ready'Which state to render. All four reserve the same frame height, so nothing shifts when data lands.
onRetry() => void-Called by the retry button in the error state. Omit it and no button is shown.
classNamestring-Merged onto the root element.