Whether today or yesterday, the calculation method is the same, there is no difference.
LC := REF (closing price,1);
RSI$ 1:SMA(MAX(CLOSE-LC,0),N 1, 1)/SMA(ABS(CLOSE-LC),N 1, 1)* 100;
RSI$2:SMA(MAX(CLOSE-LC,0),N2, 1)/SMA(ABS(CLOSE-LC),N2, 1)* 100;
RSI$3:SMA(MAX(CLOSE-LC,0),N3, 1)/SMA(ABS(CLOSE-LC),N3, 1)* 100;
Translate into vernacular.
Rsi 1 equals to today's closing price minus the maximum value of yesterday's closing price and 0, and the moving average 1 minus the absolute value of yesterday's closing price minus the moving average 1.
Rsi2 is equal to the weighted moving average of n2 day 1 today's closing price minus the maximum closing price of yesterday and 0 minus the weighted moving average of n2 day 1 yesterday's closing price.
Rsi3 is equal to n3 days 1 weighted moving average of today's closing price minus the maximum value of yesterday's closing price and 0 of the absolute value of yesterday's closing price minus n3 days 1 weighted moving average.
Where n 1 equals 6.
N2 is equal to 12.
N3 equal to 24 is an adjustable parameter.