Hello,
i want the minimum of RSI between now and 6 period before,
is there a more clever way to do this : ? ( remark i use only 4 samples instead of 6)
rsi1 = RSI[21](close)
rsi2 = RSI[21](close[2])
rsi3 = RSI[21](close[4])
rsi4 = RSI[21](close[6])
rsiA = Min(rsi1, rsi2)
rsiB = Min(rsi3, rsi4)
rsiMin = Min(rsiA, rsiB)
a for loop is needed ?
i also seen ugly code like:
min(a, min(b, min(c,d) ) )
which is not acceptable if i want to change dynamically the number of samples
[scode]
MinRsi = lowest[7](Rsi[21](close))
[/scode]