Set price format precision to 0 (integer) and minMove to 1 for all series
This commit is contained in:
@ -906,7 +906,7 @@ function renderIndicatorOnPane(indicator, meta, instance, candles, paneIndex, li
|
|||||||
if (plot.type === 'histogram') {
|
if (plot.type === 'histogram') {
|
||||||
series = window.dashboard.chart.addSeries(LightweightCharts.HistogramSeries, {
|
series = window.dashboard.chart.addSeries(LightweightCharts.HistogramSeries, {
|
||||||
color: plotColor,
|
color: plotColor,
|
||||||
priceFormat: { type: 'price', precision: 4, minMove: 0.0001 },
|
priceFormat: { type: 'price', precision: 0, minMove: 1 },
|
||||||
priceLineVisible: false,
|
priceLineVisible: false,
|
||||||
lastValueVisible: false
|
lastValueVisible: false
|
||||||
}, paneIndex);
|
}, paneIndex);
|
||||||
|
|||||||
@ -550,8 +550,8 @@ function renderIndicatorOnPane(indicator, meta, instance, candles, paneIndex, li
|
|||||||
color: plotColor,
|
color: plotColor,
|
||||||
priceFormat: {
|
priceFormat: {
|
||||||
type: 'price',
|
type: 'price',
|
||||||
precision: 4,
|
precision: 0,
|
||||||
minMove: 0.0001
|
minMove: 1
|
||||||
},
|
},
|
||||||
priceLineVisible: false,
|
priceLineVisible: false,
|
||||||
lastValueVisible: false
|
lastValueVisible: false
|
||||||
|
|||||||
Reference in New Issue
Block a user