백테스팅 실시간 매매 수정
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user