buffer problem. need help

 

hi


if( (RSIbuffer[i+1]<50) && (RSIbuffer[i]>50) )
{
thetime=Time[i];
ObjectCreate(thetime, OBJ_VLINE, 0, thetime, 0);
ObjectSet(thetime, OBJPROP_STYLE, STYLE_DASH);
ObjectSet(thetime, OBJPROP_COLOR, Green);
}


the objective is to create a vertical line everytime RSI goes below 50.

but it seems its not a buffer. vertical lines will only be created when the chart is moving.


how to make the indicator to draw past RSIbuffer movement?


please help