hts with only two SMAs
This commit is contained in:
@ -24,6 +24,12 @@ function createIndicatorManager(chart, baseCandleDataRef, displayedCandleDataRef
|
||||
bb3_lower: 'rgba(6, 95, 6, 1.0)',
|
||||
},
|
||||
hurst: { topBand: '#787b86', bottomBand: '#787b86', topBand_h: '#673ab7', bottomBand_h: '#673ab7' },
|
||||
hts: {
|
||||
fastSMA: '#00bcd4', // Cyan blue for Fast SMA
|
||||
slowSMA: '#ff5252' // Red for Slow SMA
|
||||
},
|
||||
fast_sma: '#00bcd4',
|
||||
slow_sma: '#ff5252',
|
||||
default: ['#00BCD4', '#FFEB3B', '#4CAF50', '#E91E63']
|
||||
};
|
||||
|
||||
@ -138,8 +144,10 @@ function createIndicatorManager(chart, baseCandleDataRef, displayedCandleDataRef
|
||||
slot.series.push(series);
|
||||
});
|
||||
} else {
|
||||
const indicatorNameLower = slot.definition.name.toLowerCase();
|
||||
const indicatorColor = colors[indicatorNameLower] || slot.definition.color || colors.default[slot.id - 1];
|
||||
const series = chart.addLineSeries({
|
||||
color: colors.default[slot.id - 1],
|
||||
color: indicatorColor,
|
||||
lineWidth: 1,
|
||||
title: '',
|
||||
lastValueVisible: false,
|
||||
|
||||
Reference in New Issue
Block a user