The “period=” parameter is a period for the type, for example, “sma” is a simple moving average, so if the period is 20 (period=20), it will be on the last 20 candles like the last 20 periods.