Code Base to Create any Flexible Level at RSI14 ???

[Deleted]  

Hi Friends,

Could anyone show me about the code base to create horizontal line as level at RSI 14?

The line will be created at the Bottom/Top of RSI.

The Bottom --> if RSI(i-3)>RSI(i-2) && RSI(i-1)>RSI(i-2), so the bottom is RSI(i-2).

The Peak --> if RSI(i-3)<RSI(i-2) && RSI(i-1)<RSI(i-2), so the peak is RSI(i-2).

and The line will be delleted 1 candle after RSI cross the line.

please help me about the code..


Regards,

HajarWae