diff --git a/apps/trading/client-pages/portfolio/account-history-container.tsx b/apps/trading/client-pages/portfolio/account-history-container.tsx index f83695dec..baa1e7bc4 100644 --- a/apps/trading/client-pages/portfolio/account-history-container.tsx +++ b/apps/trading/client-pages/portfolio/account-history-container.tsx @@ -301,7 +301,7 @@ export const AccountHistoryChart = ({ asset: AssetFieldsFragment; }) => { const { theme } = useThemeSwitcher(); - const values: { cols: string[]; rows: [Date, ...number[]][] } | null = + const values: { cols: [string, string]; rows: [Date, number][] } | null = useMemo(() => { if (!data?.balanceChanges.edges.length) { return null; diff --git a/apps/trading/pages/styles.css b/apps/trading/pages/styles.css index a67f00a4d..dab5d4ba0 100644 --- a/apps/trading/pages/styles.css +++ b/apps/trading/pages/styles.css @@ -34,6 +34,18 @@ html [data-theme='dark'] { /* sell candles only use stroke as the candle is solid (without border) */ --pennant-color-sell-stroke: theme('colors.vega.pink.500'); + /* studies */ + --pennant-color-eldar-ray-bear-power: theme('colors.vega.pink.500'); + --pennant-color-eldar-ray-bull-power: theme('colors.vega.green.650'); + + --pennant-color-macd-divergence-buy: theme('colors.vega.green.650'); + --pennant-color-macd-divergence-sell: theme('colors.vega.pink.500'); + --pennant-color-macd-signal: theme('colors.vega.blue.500'); + --pennant-color-macd-macd: theme('colors.vega.yellow.500'); + + --pennant-color-volume-buy: theme('colors.vega.green.650'); + --pennant-color-volume-sell: theme('colors.vega.pink.500'); + /* depth chart */ --pennant-color-depth-buy-fill: theme('colors.vega.green.650'); --pennant-color-depth-buy-stroke: theme('colors.vega.green.500'); @@ -50,6 +62,9 @@ html [data-theme='light'] { /* sell candles only use stroke as the candle is solid (without border) */ --pennant-color-sell-stroke: theme('colors.vega.pink.400'); + --pennant-color-volume-buy: theme('colors.vega.green.400'); + --pennant-color-volume-sell: theme('colors.vega.pink.500'); + /* depth chart */ --pennant-color-depth-buy-fill: theme('colors.vega.green.400'); --pennant-color-depth-buy-stroke: theme('colors.vega.green.550'); diff --git a/libs/candles-chart/src/lib/candles-chart.tsx b/libs/candles-chart/src/lib/candles-chart.tsx index 8a65b39b2..3e426f7d7 100644 --- a/libs/candles-chart/src/lib/candles-chart.tsx +++ b/libs/candles-chart/src/lib/candles-chart.tsx @@ -1,6 +1,6 @@ import 'pennant/dist/style.css'; import { - Chart, + CandlestickChart, ChartType, Interval, Overlay, @@ -234,7 +234,7 @@ export const CandlesChartContainer = ({
-