Rsi of current candle

How can we get RSI for current candle ?

Using position will not consider current candle

Then how to do it ?