Relative Strength Index (RSI)
The RSI is popular indicator developed by trader Welles Wilder. The RSI is a popular indicator that shows comparative price strength within a single security.
The most widely used method for interpreting the RSI is price / RSI divergence, support / resistance levels and RSI chart formations.
set BUY = RSI(CLOSE, 14) > 50