전략평가 오류 수정
This commit is contained in:
@@ -27,6 +27,7 @@ import { getKoreanName } from '../utils/marketNameCache';
|
||||
import { useIndicatorSettings } from '../hooks/useIndicatorSettings';
|
||||
import {
|
||||
mergeEvalGetParams,
|
||||
buildEvalParamsFromStrategy,
|
||||
type EvalIndicatorParams,
|
||||
} from '../utils/strategyEvaluationParams';
|
||||
import {
|
||||
@@ -216,12 +217,13 @@ export default function StrategyEvaluationPage({ theme = 'dark' }: Props) {
|
||||
setEvalLoading(true);
|
||||
setEvalError(null);
|
||||
try {
|
||||
const indicatorParams = buildEvalParamsFromStrategy(selectedStrategy, getEvalParams);
|
||||
const snap = await fetchEvaluationSnapshotAtBar(
|
||||
market,
|
||||
selectedStrategyId,
|
||||
selectedStrategy,
|
||||
selectedBarTimeSec,
|
||||
appliedIndicatorParams,
|
||||
indicatorParams,
|
||||
bars,
|
||||
chartTimeframe,
|
||||
);
|
||||
@@ -245,7 +247,7 @@ export default function StrategyEvaluationPage({ theme = 'dark' }: Props) {
|
||||
selectedBarIndex,
|
||||
bars,
|
||||
chartTimeframe,
|
||||
appliedIndicatorParams,
|
||||
getEvalParams,
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user