백테스팅 실시간 매매 수정

This commit is contained in:
Macbook
2026-06-13 02:33:17 +09:00
parent f0c7fbd5e9
commit 95595f7e9e
3 changed files with 45 additions and 24 deletions
+3 -2
View File
@@ -30,6 +30,7 @@ import { formatUpbitKrwPrice } from './safeFormat';
import { TRADE_BUY_COLOR, TRADE_SELL_COLOR } from './tradeSignalColors';
import {
toTradeSignalLabelItem,
resolveSignalBarTime,
type TradeSignalLabelItem,
type TradeSignalMarkerWithPrice,
} from './tradeSignalLabels';
@@ -1832,7 +1833,7 @@ export class ChartManager {
? `${label} : ${formatUpbitKrwPrice(s.price)}`
: label;
return {
time: s.time,
time: resolveSignalBarTime(this, s.time),
position: buy ? ('belowBar' as const) : ('aboveBar' as const),
shape: buy ? ('arrowUp' as const) : ('arrowDown' as const),
color: s.type === 'PARTIAL_SELL' ? '#FF9800' : (buy ? TRADE_BUY_COLOR : TRADE_SELL_COLOR),
@@ -1868,7 +1869,7 @@ export class ChartManager {
? `${label} : ${formatUpbitKrwPrice(m.price)}`
: label;
return {
time: m.time,
time: resolveSignalBarTime(this, m.time),
position: buy ? ('belowBar' as const) : ('aboveBar' as const),
shape: buy ? ('arrowUp' as const) : ('arrowDown' as const),
color: buy ? TRADE_BUY_COLOR : TRADE_SELL_COLOR,