By now, everyone knows that the candles on a financial chart should be green if the close is higher than the open and red if the close is higher than the open.
This is a sample
https://www.chartjs.org/chartjs-chart-financial/
But as you can see, many are adapting by setting the color of the candles on the close of the previous candle. That is, if the current close is higher than the close of the previous point, the candle will be green, otherwise red.
https://it.tradingview.com/chart/?symbol=NASDAQ%3ATSLA
The logic adapts to the closing price of the previous point and no longer to the opening and closing of the single point.
Now see the question
Is there a way to adapt this logic to chart.js?
Starting from the financial graph provided by chart.js already exposed above
https://www.chartjs.org/chartjs-chart-financial/
is there a way to adapt the new candlestick logic for the previous point, so not for the opening and closing price of the single candle?