일목균형표 수정

This commit is contained in:
Macbook
2026-05-27 23:36:48 +09:00
parent 9cee6387c3
commit 8cc0d1c88c
73 changed files with 2256 additions and 334 deletions
@@ -9,7 +9,12 @@ import { getPlotLabel } from '../utils/indicatorLabels';
import { getHlinePriceSpec } from '../utils/indicatorParamSpec';
import NumericParamInput from './NumericParamInput';
import { ColorInput } from './IndicatorSettingsSections';
import { LINE_WIDTH_OPTIONS, LINE_STYLE_OPTIONS } from '../utils/plotColorUtils';
import {
LINE_WIDTH_OPTIONS,
LINE_STYLE_OPTIONS,
resolveHistogramUpColor,
resolveHistogramDownColor,
} from '../utils/plotColorUtils';
import { IchimokuCloudSection } from './IndicatorSettingsSections';
import { getIchimokuPlotTitle, type IchimokuCloudColors } from '../utils/ichimokuConfig';
@@ -199,12 +204,46 @@ const IndicatorSettingsStyleSection: React.FC<IndicatorSettingsStyleSectionProps
<div ref={sectionRef} className="ism-style-section">
{plots.map((plot, idx) => (
<PlotStyleRow
key={plot.id}
label={plotLabel(plot)}
plot={plot}
onStyle={patch => onPlotStyle(idx, patch)}
/>
indicatorType === 'MACD' && plot.type === 'histogram' ? (
<div key={plot.id} className="ism-macd-hist-style-block">
<div className="ism-style-row ism-macd-hist-style-title">
<div className="ism-plot-title-cell">
<span className="ism-plot-title">{plotLabel(plot)}</span>
</div>
</div>
<div className="ism-style-row">
<div className="ism-plot-title-cell">
<span className="ism-plot-title ism-plot-title--sub"> </span>
</div>
<div className="ism-style-field ism-style-field--wide">
<span className="ism-style-label"></span>
<ColorInput
value={resolveHistogramUpColor(plot)}
onChange={v => onPlotStyle(idx, { histogramUpColor: v, color: v })}
/>
</div>
</div>
<div className="ism-style-row">
<div className="ism-plot-title-cell">
<span className="ism-plot-title ism-plot-title--sub"> </span>
</div>
<div className="ism-style-field ism-style-field--wide">
<span className="ism-style-label"></span>
<ColorInput
value={resolveHistogramDownColor(plot)}
onChange={v => onPlotStyle(idx, { histogramDownColor: v })}
/>
</div>
</div>
</div>
) : (
<PlotStyleRow
key={plot.id}
label={plotLabel(plot)}
plot={plot}
onStyle={patch => onPlotStyle(idx, patch)}
/>
)
))}
{hlines.length > 0 && (