I need support to develop a code that between 5 variables, always choose the one near 1.00
For instance:
Day 1:
A = 0.95
B = 1.07
C = 0.99
D = 0.97
E = 1.04
Day 2:
A = 0.90
B = 1.02
C = 0.94
D = 1.03
E = 0.97
So in day 1 must choose C variable over the other 4, and day 2 must choose B, and so on.
thank you.
Comment