feat(chart): candle build indicator as direction line #1

Open
u1 wants to merge 31 commits from feat/candle-build-indicator into main
Showing only changes of commit f57366fad2 - Show all commits

View File

@@ -13,6 +13,8 @@ type Props = {
candles: Candle[];
indicators: ChartIndicators;
timeframe: string;
bucketSeconds: number;
seriesKey: string;
onTimeframeChange: (tf: string) => void;
showIndicators: boolean;
onToggleIndicators: () => void;
@@ -42,6 +44,8 @@ export default function ChartPanel({
candles,
indicators,
timeframe,
bucketSeconds,
seriesKey,
onTimeframeChange,
showIndicators,
onToggleIndicators,
@@ -234,6 +238,7 @@ export default function ChartPanel({
const pointer = pendingMoveRef.current;
if (!pointer) return;
if (activeToolRef.current !== 'fib-retracement') return;
const start2 = fibStartRef.current;
if (!start2) return;
setFibDraft({ a: start2, b: pointer });
@@ -295,6 +300,8 @@ export default function ChartPanel({
ema20={indicators.ema20}
bb20={indicators.bb20}
showIndicators={showIndicators}
bucketSeconds={bucketSeconds}
seriesKey={seriesKey}
fib={fibRenderable}
fibOpacity={fibEffectiveOpacity}
fibSelected={fibSelected}