fixed z-order so indicators appear on top of price candles

This commit is contained in:
DiTus
2026-03-01 21:24:43 +01:00
parent ef43b128d5
commit 37b41caedc
2 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,8 @@ timeScale: {
priceLineVisible: false,
}, 0);
this.candleSeries.order(0);
this.currentPriceLine = this.candleSeries.createPriceLine({
price: 0,
color: '#26a69a',

View File

@ -772,6 +772,7 @@ function renderIndicatorOnPane(indicator, meta, instance, candles, paneIndex, li
}
series.setData(data);
series.order(1);
indicator.series.push(series);
plotsCreated++;
console.log(`Created series for ${indicator.id}, plot=${plot.id}, total series now=${indicator.series.length}`);