일목균형표 수정
This commit is contained in:
@@ -94,7 +94,12 @@ function renderNode(node: LogicNode, def: DefType): React.ReactNode {
|
||||
|
||||
if (node.type === 'TIMEFRAME') {
|
||||
const inner = node.children?.[0];
|
||||
const tf = formatStartCandleLabel(node.candleType ?? '1m');
|
||||
const types = node.candleTypes?.length
|
||||
? node.candleTypes
|
||||
: [node.candleType ?? '1m'];
|
||||
const tf = types.length > 1
|
||||
? types.map(formatStartCandleLabel).join(' · ')
|
||||
: formatStartCandleLabel(types[0]);
|
||||
return inner ? (
|
||||
<>
|
||||
<span className="se-formula-tf">[{tf}]</span>
|
||||
@@ -125,11 +130,14 @@ function renderSignalBranches(
|
||||
}
|
||||
|
||||
if (branches.length === 1) {
|
||||
const { candleType, root } = branches[0];
|
||||
const { candleType, candleTypes, root } = branches[0];
|
||||
if (!root) return <span className="se-formula-empty">(연결된 조건 없음)</span>;
|
||||
const tfLabel = candleTypes && candleTypes.length > 1
|
||||
? candleTypes.map(formatStartCandleLabel).join(' · ')
|
||||
: formatStartCandleLabel(candleType);
|
||||
return (
|
||||
<>
|
||||
<span className="se-formula-tf">[{formatStartCandleLabel(candleType)}]</span>
|
||||
<span className="se-formula-tf">[{tfLabel}]</span>
|
||||
{' '}
|
||||
{renderNode(root, def)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user