RSI Comment not moving but staying fixed value when running Strategy Tester - page 2

 

ok I am using MT4 and using MQL4 coding.

I basically want to see if a RSI level is reached.  If so, store that value somewhere.

Then RSI level is changing.  Once it hits a different level, then I want to say store this value over the first value stored.

Can anyone help in terms of code?