Set an offset for your indicator. So that the value returned by the calculation is X candles ago instead of the value of the current candle.
# even though we are using 2 RSI indicators both with same period and length.
# They return different values as one returns based on CLOSED candles excluding current open candle
# And the other calculates also using the current candle which value is ever changing
DEFAULT_A_buy_strategy_label = CURRENTRSI
DEFAULT_A_buy_strategy = RSI
DEFAULT_A_buy_value = 10
DEFAULT_A_buy_value_limit = 5
DEFAULT_B_buy_strategy_label = ONECANDLEAGORSI
DEFAULT_B_buy_strategy = RSI
DEFAULT_B_buy_value = 20
DEFAULT_C_buy_strategy_label = FIVECANDLEAGORSI
DEFAULT_C_buy_strategy = RSI
DEFAULT_C_buy_value = 12
CURRENTRSI_candle_period = 300
CURRENTRSI_length = 14
# Calculates RSI and return the value of 1 candle AGO
ONECANDLEAGORSI_candle_period = 300
ONECANDLEAGORSI_length = 14
ONECANDLEAGORSI_offset = 1
# Calculates RSI and return the value of 5 candles AGO
FIVECANDLEAGORSI_candle_period = 300
FIVECANDLEAGORSI_length = 14
FIVECANDLEAGORSI_offset = 5