RSIExit = input(55, "RSI Exit") RSILength = input(4, "RSI Length") testPeriod() => time >= testPeriodStart and time <= testPeriodStop ? true : false longSMA = sma(close, 200) // 200-day moving average rsi = rsi(close, RSILength) // relative strength indicator with custom length longCondition = close > longSMA // closing price is above 200-day sma if...