Pinescript trading indicator for TradingView

The RSI calculated using a length of 14 bars on the closing prices.

Entry Condition: If the RSI crosses below threshold 30, a long position is entered. The entry price and stop loss price are recorded based on the current close price and the defined stop loss percentage.

Exit Condition: If a long position is open and the close price falls below the stop loss price, the position is closed. stop loss percentage is set to 1.5%.