It seems that the Ichimoku indicator spanA and spanB lines are calculated wrong.
They should be plotted displacement periods in the future, but they are not.
Here is a reference for the calculation:
https://www.investopedia.com/terms/i/ichimoku-cloud.asp
I created a chart using TradingvVew lightweight charts, and plotted the ichimoku values as lines. To compare, I picked the same chart on TradingView with the ichimoku indicator enabled. It seems clear to me that the conversion and base lines are plotted right, but spanA and spanB are not plotted in the future, as they should be.

It seems that the Ichimoku indicator spanA and spanB lines are calculated wrong.
They should be plotted
displacementperiods in the future, but they are not.Here is a reference for the calculation:
https://www.investopedia.com/terms/i/ichimoku-cloud.asp
I created a chart using TradingvVew lightweight charts, and plotted the ichimoku values as lines. To compare, I picked the same chart on TradingView with the ichimoku indicator enabled. It seems clear to me that the conversion and base lines are plotted right, but spanA and spanB are not plotted in the future, as they should be.