매수, 매도 색상 수정
This commit is contained in:
@@ -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 { TRADE_BUY_COLOR, TRADE_SELL_COLOR } from './tradeSignalColors';
|
||||
import {
|
||||
DEFAULT_CHART_TIME_FORMAT,
|
||||
formatUnixWithChartPattern,
|
||||
@@ -1181,7 +1182,7 @@ export class ChartManager {
|
||||
time: 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 ? '#26A69A' : '#EF5350'),
|
||||
color: s.type === 'PARTIAL_SELL' ? '#FF9800' : (buy ? TRADE_BUY_COLOR : TRADE_SELL_COLOR),
|
||||
text,
|
||||
};
|
||||
});
|
||||
@@ -1213,7 +1214,7 @@ export class ChartManager {
|
||||
time: m.time,
|
||||
position: buy ? ('belowBar' as const) : ('aboveBar' as const),
|
||||
shape: buy ? ('arrowUp' as const) : ('arrowDown' as const),
|
||||
color: buy ? '#00BCD4' : '#FF9800', // 백테스팅과 구별: 청록/주황
|
||||
color: buy ? TRADE_BUY_COLOR : TRADE_SELL_COLOR,
|
||||
text,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user