주가 표시형식 수정

This commit is contained in:
Macbook
2026-06-06 00:56:45 +09:00
parent 1d4e606f77
commit 94d3f92bb9
18 changed files with 156 additions and 57 deletions
+5 -4
View File
@@ -25,6 +25,7 @@ import { BollingerBandFillPrimitive } from './BollingerBandFillPrimitive';
import { resolveBbBandBackground } from './bollingerConfig';
import type { OHLCVBar, ChartType, Theme, IndicatorConfig, Timeframe } from '../types';
import { formatChartAxisPrice, formatIndicatorAxisPrice } from './dataGenerator';
import { formatUpbitKrwPrice } from './safeFormat';
import { TRADE_BUY_COLOR, TRADE_SELL_COLOR } from './tradeSignalColors';
import {
DEFAULT_CHART_TIME_FORMAT,
@@ -1271,7 +1272,7 @@ export class ChartManager {
: buy ? '매수'
: '매도';
const text = showPrice
? `${label} : ${s.price.toLocaleString()}`
? `${label} : ${formatUpbitKrwPrice(s.price)}`
: label;
return {
time: s.time,
@@ -1304,7 +1305,7 @@ export class ChartManager {
const buy = m.signal === 'BUY';
const label = buy ? '매수' : '매도';
const text = showPrice
? `${label} : ${m.price.toLocaleString()}`
? `${label} : ${formatUpbitKrwPrice(m.price)}`
: label;
return {
time: m.time,
@@ -1988,7 +1989,7 @@ export class ChartManager {
if (!this.mainSeries) return;
const line = this.mainSeries.createPriceLine({
price, color: '#FFB300', lineWidth: 1, lineStyle: LineStyle.Dashed,
axisLabelVisible: true, title: label || `Alert ${price.toFixed(2)}`,
axisLabelVisible: true, title: label || `Alert ${formatUpbitKrwPrice(price)}`,
});
this.alertEntries.push({ price, label, line });
}
@@ -2051,7 +2052,7 @@ export class ChartManager {
this.drawingPoints = [];
} else if (tool === 'trendline' && this.drawingPoints.length === 2) {
const [p1, p2] = this.drawingPoints;
const l = this.mainSeries.createPriceLine({ price: (p1.price + p2.price) / 2, color: '#2962FF', lineWidth: 1, lineStyle: LineStyle.Solid, axisLabelVisible: false, title: `${p1.price.toFixed(2)}${p2.price.toFixed(2)}` });
const l = this.mainSeries.createPriceLine({ price: (p1.price + p2.price) / 2, color: '#2962FF', lineWidth: 1, lineStyle: LineStyle.Solid, axisLabelVisible: false, title: `${formatUpbitKrwPrice(p1.price)}${formatUpbitKrwPrice(p2.price)}` });
this.drawingLines.push(l);
this.drawingPoints = [];
} else if (tool === 'measure' && this.drawingPoints.length === 2) {